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();