Browse Source

日常开发

linxuxiang 1 week ago
parent
commit
f6120e577c
1 changed files with 9 additions and 7 deletions
  1. 9 7
      src/views/home/index.vue

+ 9 - 7
src/views/home/index.vue

@@ -35,7 +35,7 @@ const getJump = (url: string, name: string) => {
     return false;
   }
   if (url == '/set') {
-    if (import.meta.env.DEV || import.meta.env.development) {
+    if (import.meta.env.DEV) {
       proxy?.$modal.msgSuccess('测试环境免密进入');
       router.push({ path: url });
     } else {
@@ -99,12 +99,14 @@ const getJump = (url: string, name: string) => {
     //     }
     //   })
     //   .finally(() => { });
-    if (import.meta.env.DEV) {
-      proxy?.$modal.msgSuccess('测试环境直接进入');
-      router.push({ path: url });
-    } else {
-      proxy?.$modal.msgWarning('暂不开放使用,敬请期待!');
-    }
+
+     router.push({ path: url });
+    // if (import.meta.env.DEV) {
+    //   proxy?.$modal.msgSuccess('测试环境直接进入');
+    //   router.push({ path: url });
+    // } else {
+    //   proxy?.$modal.msgWarning('暂不开放使用,敬请期待!');
+    // }
   }
   else {
     router.push({ path: url });