linxuxiang 1 месяц назад
Родитель
Сommit
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');
       }