刘洋 2 vuotta sitten
vanhempi
commit
97b9c4acb8
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      src/router/index.ts

+ 3 - 0
src/router/index.ts

@@ -36,6 +36,9 @@ const router = createRouter({
 
 router.beforeEach(async (to, from, next) => {
   const mainStore = useMainStore()
+  if (to.name === 'Login') {
+    mainStore.setLockScreen(false)
+  }
   if (
     !mainStore.myUserInfo &&
     sessionStorage.get('LOGIN_RESULT') &&