leo 15 часов назад
Родитель
Сommit
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({