mo пре 1 година
родитељ
комит
ff7052a954
1 измењених фајлова са 2 додато и 1 уклоњено
  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();