From 07ee09c50f87e4fad824d17a7fc856d9bef99385 Mon Sep 17 00:00:00 2001 From: zhangzhanwei Date: Sat, 12 Jul 2025 16:29:01 +0800 Subject: [PATCH] fix: Imported tool create --- ui/src/views/tool/component/ToolListContainer.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/views/tool/component/ToolListContainer.vue b/ui/src/views/tool/component/ToolListContainer.vue index c5785a9da..aa55b40fe 100644 --- a/ui/src/views/tool/component/ToolListContainer.vue +++ b/ui/src/views/tool/component/ToolListContainer.vue @@ -560,9 +560,13 @@ function importTool(file: any) { .then(async (res: any) => { if (res?.data) { tool.setToolList([]) - getList() + return user.profile() } }) + .then(() => { + getList() + + }) .catch((e: any) => { if (e.code === 400) { MsgConfirm(t('common.tip'), t('views.application.tip.professionalMessage'), {