提交 6bf2a4f8 authored 作者: wangjiahao's avatar wangjiahao

fix: 切换一级目录 清理原有仪表板信息

上级 216f722a
......@@ -55,7 +55,7 @@ export default {
}
},
mounted() {
this.$store.dispatch('panel/setMainActiveName', 'PanelMain')
this.clear()
},
methods: {
handleClick(tab, event) {
......@@ -74,7 +74,17 @@ export default {
refreshEnshrine() {
this.showEnshrine = false
this.$nextTick(() => (this.showEnshrine = true))
},
clear() {
// 清空
this.$store.dispatch('panel/setPanelInfo', {
id: null,
name: '',
preStyle: null
})
this.$store.dispatch('panel/setMainActiveName', 'PanelMain')
}
}
}
</script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论