瀏覽代碼

修复问题

linxuxiang 1 月之前
父節點
當前提交
121a6cec49
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/api/request.ts

+ 3 - 0
src/api/request.ts

@@ -96,6 +96,9 @@ service.interceptors.response.use(
       if (deviceid == undefined && router.currentRoute.value.path != '/login' && router.currentRoute.value.path != '/sunshineRun') {
         router.push('/login');
       }
+      if (deviceid == undefined && router.currentRoute.value.path == '/gesture') {
+        router.push('/login/qrcode');
+      }
       if (deviceid == undefined && router.currentRoute.value.path == '/sunshineRun') {
         router.push('/login/sunshineRun');
       }