diff --git a/frontend/src/views/panel/list/EditPanel/index.vue b/frontend/src/views/panel/list/EditPanel/index.vue
index a6daca3789..03a5e89aee 100644
--- a/frontend/src/views/panel/list/EditPanel/index.vue
+++ b/frontend/src/views/panel/list/EditPanel/index.vue
@@ -8,16 +8,19 @@
{{ $t('panel.custom') }}
+ > {{ $t('panel.custom') }}
+
{{ $t('panel.import_template') }}
+ >{{ $t('panel.import_template') }}
+
{{ $t('panel.copy_template') }}
+ >{{ $t('panel.copy_template') }}
+
{{ $t('panel.upload_template') }}
+ >{{ $t('panel.upload_template') }}
+
{{ $t('commons.cancel') }}
+ >{{ $t('commons.cancel') }}
+
{{ $t('commons.confirm') }}
+ >{{ $t('commons.confirm') }}
+
@@ -234,7 +240,7 @@ export default {
showClose: true
})
this.loading = false
- this.$emit('closeEditPanelDialog', response.data)
+ this.$emit('closeEditPanelDialog', { id: response.data, name: this.editPanel.panelInfo.name })
}).catch(() => {
this.loading = false
})
@@ -265,34 +271,38 @@ export default {
diff --git a/frontend/src/views/panel/list/PanelList.vue b/frontend/src/views/panel/list/PanelList.vue
index 671f996f94..1ff274d29f 100644
--- a/frontend/src/views/panel/list/PanelList.vue
+++ b/frontend/src/views/panel/list/PanelList.vue
@@ -645,6 +645,9 @@ export default {
if (panelInfo) {
this.defaultTree()
this.tree()
+ if (this.editPanel.optType === 'rename' && panelInfo.id === this.$store.state.panel.panelInfo.id) {
+ this.$store.state.panel.panelInfo.name = panelInfo.name
+ }
// 默认展开 同时点击 新增的节点
if (
panelInfo &&