mo 1 năm trước cách đây
mục cha
commit
aec72816b0
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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();