linxuxiang 1 kuukausi sitten
vanhempi
commit
121a6cec49
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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');
       }