From a4a4ba5db9454b77528c9dba4462c41c48a23254 Mon Sep 17 00:00:00 2001 From: Wangjiahao <1522128093@qq.com> Date: Tue, 11 Jul 2023 08:42:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=BB=98=E8=AE=A4=E4=BB=AA=E8=A1=A8=E7=9B=98=E9=87=8C?= =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E6=94=B9=E5=AE=8C=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98=20#5599?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/list/PanelList.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/panel/list/PanelList.vue b/frontend/src/views/panel/list/PanelList.vue index 0984353329..f972c4761e 100644 --- a/frontend/src/views/panel/list/PanelList.vue +++ b/frontend/src/views/panel/list/PanelList.vue @@ -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) => {