refactor: 优化空仪表板收藏状态
This commit is contained in:
parent
fc9ba6a67e
commit
67068aa416
@ -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