update 实时数据“

This commit is contained in:
g7hoo 2022-09-27 15:52:03 +08:00
parent a0253cc235
commit 5d32750d87
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ export default {
type: 'warning', type: 'warning',
onClose: () => { onClose: () => {
this.clearData() this.clearData()
this.fetchList().then(res => { this.fetchList().then(({ data: res }) => {
this.testData = res this.testData = res
this.handleData() this.handleData()
}) })

View File

@ -48,7 +48,7 @@ export default {
type: 'warning', type: 'warning',
onClose: () => { onClose: () => {
this.clearData() this.clearData()
this.fetchList().then(res => { this.fetchList().then(({ data: res }) => {
this.testData = res this.testData = res
this.handleData() this.handleData()
}) })