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');
       }