Merge pull request #1678 from dataease/pr@dev@refactor_panel_star_status
refactor: 优化空仪表板收藏状态
This commit is contained in:
commit
5c2ae56184
@ -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
|
||||
})
|
||||
},
|
||||
|
||||
@ -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
|
||||
})
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user