刘洋 %!s(int64=2) %!d(string=hai) anos
pai
achega
97b9c4acb8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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') &&