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'), {