代码更新

This commit is contained in:
2022-07-25 17:18:43 +08:00
parent 486e0582e4
commit d035d9dc6e
2 changed files with 9 additions and 3 deletions

View File

@@ -68,7 +68,9 @@ export default {
getMessage: function(msg) {
debugger
const data = JSON.parse(msg.data)
this.tableData = data.msg
if (data.msg.length !== 0) {
this.tableData = data.msg
}
},
send: function() {
// eslint-disable-next-line no-undef

View File

@@ -75,8 +75,12 @@ export default {
getMessage: function(msg) {
debugger
const data = JSON.parse(msg.data)
this.table = data.msg.requestArr
this.table2 = data.msg.repaiArr
if (data.msg.requestArr.length !== 0) {
this.table = data.msg.requestArr
}
if (data.msg.repaiArr.length !== 0) {
this.table2 = data.msg.repaiArr
}
},
send: function() {
// eslint-disable-next-line no-undef