|
@@ -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() {
|