YY 2 éve
szülő
commit
cff6149193
1 módosított fájl, 9 hozzáadás és 2 törlés
  1. 9 2
      src/views/selfShop/message/index.vue

+ 9 - 2
src/views/selfShop/message/index.vue

@@ -118,7 +118,10 @@ export default {
     },
     // 查看
     async toView(data) {
-      if (this.customer._id != data.customer._id) this.$set(this, `customer`, data.customer);
+      if (this.customer._id != data.customer._id) {
+        this.loadingRight = true;
+        this.$set(this, `customer`, data.customer);
+      }
       if (data._id) {
         this.$set(this, `form`, { room: data._id });
         // 处理已读
@@ -149,7 +152,11 @@ export default {
         }
       }
       this.show = '1';
-      this.loadingRight = false;
+      setTimeout(() => {
+        this.$nextTick(() => {
+          this.loadingRight = false;
+        });
+      }, 1000);
     },
     // 发送图片
     toUp() {