代码更新
This commit is contained in:
@@ -68,7 +68,9 @@ export default {
|
|||||||
getMessage: function(msg) {
|
getMessage: function(msg) {
|
||||||
debugger
|
debugger
|
||||||
const data = JSON.parse(msg.data)
|
const data = JSON.parse(msg.data)
|
||||||
this.tableData = data.msg
|
if (data.msg.length !== 0) {
|
||||||
|
this.tableData = data.msg
|
||||||
|
}
|
||||||
},
|
},
|
||||||
send: function() {
|
send: function() {
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
|
|||||||
@@ -75,8 +75,12 @@ export default {
|
|||||||
getMessage: function(msg) {
|
getMessage: function(msg) {
|
||||||
debugger
|
debugger
|
||||||
const data = JSON.parse(msg.data)
|
const data = JSON.parse(msg.data)
|
||||||
this.table = data.msg.requestArr
|
if (data.msg.requestArr.length !== 0) {
|
||||||
this.table2 = data.msg.repaiArr
|
this.table = data.msg.requestArr
|
||||||
|
}
|
||||||
|
if (data.msg.repaiArr.length !== 0) {
|
||||||
|
this.table2 = data.msg.repaiArr
|
||||||
|
}
|
||||||
},
|
},
|
||||||
send: function() {
|
send: function() {
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
|
|||||||
Reference in New Issue
Block a user