|
@@ -46,9 +46,11 @@ export default {
|
|
|
...mapActions(['query', 'fetch']),
|
|
|
...personalChat({ getChatList: 'query' }),
|
|
|
async search() {
|
|
|
- let res = await this.query({ receiver_id: this.user.uid });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `list`, res.data);
|
|
|
+ let res = await this.query({ seller_id: this.user.uid });
|
|
|
+ let arr = await this.query({ buyer_id: this.user.uid });
|
|
|
+ var newData = res.data.concat(arr.data);
|
|
|
+ if (this.$checkRes(newData)) {
|
|
|
+ this.$set(this, `list`, newData);
|
|
|
this.onMessage();
|
|
|
}
|
|
|
},
|