mo hace 1 año
padre
commit
aec72816b0
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      src/components/RouterError/index.tsx

+ 5 - 1
src/components/RouterError/index.tsx

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