Pārlūkot izejas kodu

首页修改手机号优化

gzb
guozhongbo pirms 7 mēnešiem
vecāks
revīzija
8e9b5c82ab

+ 4
- 0
src/views/layout.vue Parādīt failu

@@ -369,6 +369,9 @@ export default {
369 369
                 oldpwd: ""
370 370
               };
371 371
             } else {
372
+              if (this.adminInfo.timer) {
373
+                clearInterval(this.phoneInfo.timer);
374
+              }
372 375
               this.phoneInfo = {
373 376
                 show: true,
374 377
                 timer: null,
@@ -379,6 +382,7 @@ export default {
379 382
                 phone: "",
380 383
                 msgcode: ""
381 384
               };
385
+
382 386
             }
383 387
           } else {
384 388
             this.$Message.error(res.msg);

+ 6
- 0
src/views/regionSection/regionManage/adminManage.vue Parādīt failu

@@ -571,6 +571,9 @@ export default {
571 571
     },
572 572
     // 新建
573 573
     toAdd() {
574
+      if(this.adminInfo.timer){
575
+        clearInterval(this.adminInfo.timer);
576
+      }
574 577
       this.adminInfo = {
575 578
         show: true,
576 579
         timer: null,
@@ -738,6 +741,9 @@ export default {
738 741
       }).then((res) => {
739 742
         this.showLoading = false;
740 743
         if (res.code === 0) {
744
+          if(this.adminInfo.timer){
745
+            clearInterval(this.adminInfo.timer);
746
+          }
741 747
           this.adminInfo = {
742 748
             show: true,
743 749
             timer: null,

+ 0
- 1
src/views/regionSection/regionManage/regionManage.vue Parādīt failu

@@ -788,7 +788,6 @@ export default {
788 788
     toAdd() {
789 789
       if (this.regionInfo.timer) {
790 790
         clearInterval(this.regionInfo.timer);
791
-        this.regionInfo.timer = null;
792 791
       }
793 792
       this.regionInfo = {
794 793
         show: true,

Notiek ielāde…
Atcelt
Saglabāt