Parcourir la source

处理测试bug

Administrator il y a 7 ans
Parent
commit
af0122d58e
1 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. 5 4
      components/mobile/base/addressView.vue

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

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