代码更新
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user