refactor: 优化空仪表板收藏状态

This commit is contained in:
fit2cloud-chenyw 2022-01-21 11:04:41 +08:00
parent fc9ba6a67e
commit 67068aa416
2 changed files with 2 additions and 2 deletions

View File

@ -517,7 +517,7 @@ export default {
})
},
initHasStar() {
starStatus(this.panelInfo.id, false).then(res => {
this.panelInfo && this.panelInfo.id && starStatus(this.panelInfo.id, false).then(res => {
this.hasStar = res.data
})
},

View File

@ -317,7 +317,7 @@ export default {
})
},
initHasStar() {
starStatus(this.panelInfo.id).then(res => {
this.panelInfo && this.panelInfo.id && starStatus(this.panelInfo.id).then(res => {
this.hasStar = res.data
})
},