Unverified 提交 5c2ae561 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

Merge pull request #1678 from dataease/pr@dev@refactor_panel_star_status

refactor: 优化空仪表板收藏状态
...@@ -517,7 +517,7 @@ export default { ...@@ -517,7 +517,7 @@ export default {
}) })
}, },
initHasStar() { initHasStar() {
starStatus(this.panelInfo.id, false).then(res => { this.panelInfo && this.panelInfo.id && starStatus(this.panelInfo.id, false).then(res => {
this.hasStar = res.data this.hasStar = res.data
}) })
}, },
......
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
}) })
}, },
initHasStar() { initHasStar() {
starStatus(this.panelInfo.id).then(res => { this.panelInfo && this.panelInfo.id && starStatus(this.panelInfo.id).then(res => {
this.hasStar = res.data this.hasStar = res.data
}) })
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论