fix: 【仪表板】仪表板收藏后再取消,仪表板显示为空

This commit is contained in:
wangjiahao 2021-07-07 14:13:13 +08:00
parent 24c5581def
commit 036bc45b6b
3 changed files with 13 additions and 5 deletions

View File

@ -165,8 +165,8 @@ export default {
}
>>> .el-radio-button__inner{
padding: 5px;
width: 30px;
::v-deep .el-radio-button__inner{
padding: 5px!important;
width: 30px!important;
}
</style>

View File

@ -17,7 +17,7 @@
</el-tabs>
</de-aside-container>
<de-main-container>
<PanelViewShow v-if="mainActiveName==='PanelMain'" />
<PanelViewShow v-if="mainActiveName==='PanelMain'" :active-tab="activeName" />
</de-main-container>
</de-container>
</template>

View File

@ -83,6 +83,12 @@ import bus from '@/utils/bus'
export default {
name: 'PanelViewShow',
components: { Preview, SaveToTemplate },
props: {
activeTab: {
type: String,
required: false
}
},
data() {
return {
showMain: true,
@ -194,7 +200,9 @@ export default {
})
},
refreshStarList(isStar) {
bus.$emit('panle_start_list_refresh', isStar)
if (this.activeTab !== 'PanelList') {
bus.$emit('panle_start_list_refresh', isStar)
}
}
}