Преглед на файлове

Merge branch 'startLogin'

mo преди 1 година
родител
ревизия
11b217394f
променени са 1 файла, в които са добавени 7 реда и са изтрити 2 реда
  1. 7 2
      src/components/RouterError/index.tsx

+ 7 - 2
src/components/RouterError/index.tsx

@@ -43,8 +43,13 @@ export default defineComponent({
       }
     });
     router.beforeEach(async (to, from, next) => {
-        if(await versionCheck()){
-          const showModalMask = ref(true)
+      const flag =  await versionCheck()
+        if(flag){
+          sessionStorage.setItem('isRouter','true')
+         showModalMask.value = true
+         setTimeout(()=>{
+          sessionStorage.removeItem('isRouter')
+        },60000)
         }
       next();