林旭祥 1 개월 전
부모
커밋
647f0a54e6
1개의 변경된 파일16개의 추가작업 그리고 11개의 파일을 삭제
  1. 16 11
      src/views/home/index.vue

+ 16 - 11
src/views/home/index.vue

@@ -60,17 +60,22 @@ const getJump = (url: string, name: string) => {
         .finally(() => {});
     }
   } else if (url == '/test') {
-    proxy?.$modal
-      .prompt('请输入密码')
-      .then((e: any) => {
-        // console.log("e", e)
-        if (e.action == 'confirm' && e.value == '160713') {
-          let deviceid = e.value;
-          localStorage.setItem('deviceid', deviceid);
-          router.push({ path: url });
-        }
-      })
-      .finally(() => {});
+    if (import.meta.env.DEV) {
+      proxy?.$modal.msgSuccess('测试环境免密进入设置');
+      router.push({ path: url });
+    } else {
+      proxy?.$modal
+        .prompt('请输入密码')
+        .then((e: any) => {
+          // console.log("e", e)
+          if (e.action == 'confirm' && e.value == '160713') {
+            let deviceid = e.value;
+            localStorage.setItem('deviceid', deviceid);
+            router.push({ path: url });
+          }
+        })
+        .finally(() => {});
+    }
   } else if (url == '/gesture') {
     proxy?.$modal
       .prompt('请输入设备码')