forked from github/dataease
fix: 切换一级目录 清理原有仪表板信息
This commit is contained in:
parent
216f722a99
commit
6bf2a4f8ae
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user