Browse Source

处理测试bug

Administrator 7 năm trước cách đây
mục cha
commit
af0122d58e

+ 5 - 4
components/mobile/base/addressView.vue

@@ -112,13 +112,14 @@
         this.showLogout = true
         this.showLogout = true
       },
       },
       goNext() {
       goNext() {
-        if (this.saveId.active === 0) {
-          this.setActiveClick(this.addressList[1].id)
-        }
         this.$http.put(`/trade/address/delete/${this.saveId.id}`)
         this.$http.put(`/trade/address/delete/${this.saveId.id}`)
           .then(() => {
           .then(() => {
-            this.initList()
             this.showLogout = false
             this.showLogout = false
+            if (this.saveId.active === 0) {
+              this.setActiveClick(this.addressList[1].id)
+            } else {
+              this.initList()
+            }
           })
           })
       },
       },
       // 编辑事件
       // 编辑事件