diff --git a/src/modules/interface/menus/components/MenuEditingModal.vue b/src/modules/interface/menus/components/MenuEditingModal.vue index cd79ce4d..b7b0fc29 100644 --- a/src/modules/interface/menus/components/MenuEditingModal.vue +++ b/src/modules/interface/menus/components/MenuEditingModal.vue @@ -45,6 +45,10 @@ const isUpdateMode = computed(() => { return !!formState.value.metadata.creationTimestamp; }); +const modalTitle = computed(() => { + return isUpdateMode.value ? "编辑菜单" : "新增菜单"; +}); + const handleCreateMenu = async () => { try { saving.value = true; @@ -107,7 +111,7 @@ watch( { return !!formState.value.metadata.creationTimestamp; }); +const modalTitle = computed(() => { + return isUpdateMode.value ? "编辑菜单项" : "新增菜单项"; +}); + const handleSaveMenuItem = async () => { try { saving.value = true; @@ -240,7 +244,7 @@ const onMenuItemSourceChange = () => {