소스 검색

fix: update equipment info

leo 13 시간 전
부모
커밋
bed432fce6
1개의 변경된 파일9개의 추가작업 그리고 3개의 파일을 삭제
  1. 9 3
      pages/equipList/modification.vue

+ 9 - 3
pages/equipList/modification.vue

@@ -107,7 +107,7 @@ export default {
           device_name: this.moddata.device_name,
         },
       });
-      console.log(res);
+
       if (res == false) {
         uni.showToast({
           title: '修改名称失败',
@@ -121,7 +121,10 @@ export default {
         uni.removeStorage({
           key: 'location',
         });
-        this.clickLeft();
+
+        setTimeout(() => {
+          this.clickLeft();
+        }, 500);
       }
     },
     async eqlistuser(id, imei) {
@@ -151,7 +154,10 @@ export default {
     },
     btn() {
       this.eqlistcity(this.moddata.lat, this.moddata.lng);
-      this.eqlistname();
+
+      setTimeout(() => {
+        this.eqlistname();
+      }, 500);
     },
     clickLeft() {
       uni.navigateBack({