Browse Source

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

Xiao_123 6 months ago
parent
commit
82fca98db6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/App.vue

+ 2 - 1
src/App.vue

@@ -37,7 +37,8 @@ const checkVersion = () => {
     headers: { ['tenant-id']: tenantId },
     cache: 'no-store' // 禁用缓存
   }).then((res) => {
-    if (res?.data?.data === version) {
+    // 接口报错和版本一致不弹Confirm
+    if (!res?.data?.data || res.data.data === version) {
       return
     }
     if (ConfirmDone) {