Browse Source

Merge commit '56036879f571ec96acd4bd4a037b7f6985e866f7' into gzb

gzb
guozhongbo 8 months ago
parent
commit
68b79d1e9a

+ 6
- 0
src/views/platformSection/regionManage/adminManage.vue View File

498
     },
498
     },
499
     // 新建
499
     // 新建
500
     toAdd() {
500
     toAdd() {
501
+      if (this.adminInfo.timer) {
502
+        clearInterval(this.adminInfo.timer);
503
+      }
501
       this.adminInfo = {
504
       this.adminInfo = {
502
         show: true,
505
         show: true,
503
         timer: null,
506
         timer: null,
646
     },
649
     },
647
     // 编辑
650
     // 编辑
648
     toEdit(row) {
651
     toEdit(row) {
652
+      if (this.adminInfo.timer) {
653
+        clearInterval(this.adminInfo.timer);
654
+      }
649
       admin_detail({ adminid: row.adminid }).then((data) => {
655
       admin_detail({ adminid: row.adminid }).then((data) => {
650
         if (data.code === 0) {
656
         if (data.code === 0) {
651
           this.adminInfo = {
657
           this.adminInfo = {

+ 0
- 1
src/views/platformSection/regionManage/regionManage.vue View File

498
     toAdd() {
498
     toAdd() {
499
       if (this.regionInfo.timer) {
499
       if (this.regionInfo.timer) {
500
         clearInterval(this.regionInfo.timer);
500
         clearInterval(this.regionInfo.timer);
501
-        this.regionInfo.timer = null;
502
       }
501
       }
503
       this.regionInfo = {
502
       this.regionInfo = {
504
         show: true,
503
         show: true,

Loading…
Cancel
Save