Browse Source

提交测试

1
mo 4 years ago
parent
commit
c853504173
1 changed files with 10 additions and 2 deletions
  1. 10 2
      src/views/teamBuild/components/teamBaseInfo.vue

+ 10 - 2
src/views/teamBuild/components/teamBaseInfo.vue

@@ -517,6 +517,8 @@ export default {
             confirmButtonText: "是",
             cancelButtonText: "否",
             type: "warning",
+            closeOnClickModal:false,
+            distinguishCancelAndClose:true
           })
             .then(async () => {
               // localStorage.setItem(
@@ -527,9 +529,15 @@ export default {
               console.log(b)
               return b;
             })
-            .catch(() => {
-              localStorage.removeItem(`${this.teamid}base`)
+            .catch((e) => {
+              console.log(e)
+              if(e == 'close'){
+                return false
+              }else{
+                    localStorage.removeItem(`${this.teamid}base`)
               return true
+              }
+
               // localStorage.setItem(`${this.teamid}base`,JSON.stringify(this.topFrom));
             })
         } else {