From f6b36b7801794ae0f46e0a9a68277b1001c4bff2 Mon Sep 17 00:00:00 2001 From: zhangzhanwei Date: Mon, 7 Jul 2025 17:33:50 +0800 Subject: [PATCH] fix: Update visibility handling after user profile retrieval and enhance permission checks in dropdown items --- ui/src/views/tool/ToolFormDrawer.vue | 6 ++++-- ui/src/views/tool/component/ToolListContainer.vue | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ui/src/views/tool/ToolFormDrawer.vue b/ui/src/views/tool/ToolFormDrawer.vue index 5ab795b91..bb02a8016 100644 --- a/ui/src/views/tool/ToolFormDrawer.vue +++ b/ui/src/views/tool/ToolFormDrawer.vue @@ -431,8 +431,9 @@ const submit = async (formEl: FormInstance | undefined) => { .then((res: any) => { MsgSuccess(t('common.editSuccess')) emit('refresh', res.data) - visible.value = false + return user.profile() }) + .then(() => {visible.value = false}) } else { const obj = { folder_id: folder.currentFolder?.id, @@ -443,8 +444,9 @@ const submit = async (formEl: FormInstance | undefined) => { .then((res: any) => { MsgSuccess(t('common.createSuccess')) emit('refresh') - visible.value = false + return user.profile() }) + .then(() => {visible.value = false}) } } }) diff --git a/ui/src/views/tool/component/ToolListContainer.vue b/ui/src/views/tool/component/ToolListContainer.vue index 5857c1ef8..811353847 100644 --- a/ui/src/views/tool/component/ToolListContainer.vue +++ b/ui/src/views/tool/component/ToolListContainer.vue @@ -213,7 +213,7 @@