mo il y a 1 an
Parent
commit
ff7052a954
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/components/RouterError/index.tsx

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

@@ -43,7 +43,8 @@ export default defineComponent({
       }
     });
     router.beforeEach(async (to, from, next) => {
-        if(await versionCheck()){
+      const flag =  await versionCheck()
+        if(flag){
           const showModalMask = ref(true)
         }
       next();