|
@@ -50,7 +50,7 @@ export default {
|
|
|
methods: {
|
|
|
...chat(['query', 'create']),
|
|
|
async search() {
|
|
|
- const res = await this.query({ skip: 0, limit: 10, dock_id: this.dock_id });
|
|
|
+ const res = await this.query({ skip: 0, dock_id: this.dock_id });
|
|
|
if (this.$checkRes(res)) this.$set(this, `list`, _.reverse(res.data));
|
|
|
},
|
|
|
async send() {
|
|
@@ -81,6 +81,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
onMessage(message) {
|
|
|
+ console.log(message);
|
|
|
let body = _.get(message, 'body');
|
|
|
if (body) {
|
|
|
body = JSON.parse(body);
|