mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 22:41:06 +08:00
refactor: 优化空仪表板收藏状态
This commit is contained in:
@@ -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
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user