forked from github/dataease
Merge pull request #5618 from dataease/fix_default-panel-rename
fix(仪表板): 修复默认仪表盘里重命名改完不生效问题 #5599
This commit is contained in:
commit
f0cb749f0a
@ -670,7 +670,10 @@ export default {
|
||||
if (this.editPanel.optType === 'toDefaultPanel') {
|
||||
this.defaultTree(false)
|
||||
}
|
||||
updateCacheTree(this.editPanel.optType, 'panel-main-tree', panelInfo, this.tData)
|
||||
|
||||
updateCacheTree(this.editPanel.optType,
|
||||
panelInfo.panelType === 'system' ? 'panel-default-tree' : 'panel-main-tree', panelInfo,
|
||||
panelInfo.panelType === 'system' ? this.defaultData : this.tData)
|
||||
if (this.editPanel.optType === 'rename' && panelInfo.id === this.$store.state.panel.panelInfo.id) {
|
||||
this.$store.state.panel.panelInfo.name = panelInfo.name
|
||||
}
|
||||
@ -850,7 +853,7 @@ export default {
|
||||
|
||||
delete(data) {
|
||||
const params = {
|
||||
title: data.nodeType === 'folder'?'commons.delete_this_folder':'commons.delete_this_dashboard',
|
||||
title: data.nodeType === 'folder' ? 'commons.delete_this_folder' : 'commons.delete_this_dashboard',
|
||||
type: 'danger',
|
||||
cb: () => {
|
||||
delGroup(data.id).then((response) => {
|
||||
|
Loading…
Reference in New Issue
Block a user