fix:修改panel lock 刷新就panel 就重置的问题

This commit is contained in:
zhangyu
2022-03-11 10:45:19 +08:00
parent b0c23d1f03
commit 5a478fbffe
4 changed files with 7 additions and 5 deletions

View File

@@ -527,6 +527,7 @@ export default {
createSuccess (msg, data, params, panel) {
this.filter.panelId = this.showPanel.id
this.getData(this.filter)
this.$store.dispatch('clearPanel')
},
// 获取数据,用在子页面
getData (params) {
@@ -866,6 +867,9 @@ export default {
}, 100)
}
},
beforeDestroy () {
this.$store.dispatch('dispatchPanelLock', { flag: true })
},
watch: {
'filter.searchName': function (n, o) {
const temp = this