diff --git a/ui/src/views/tool/ToolFormDrawer.vue b/ui/src/views/tool/ToolFormDrawer.vue index 5ab795b9188..bb02a8016be 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 5857c1ef854..81135384763 100644 --- a/ui/src/views/tool/component/ToolListContainer.vue +++ b/ui/src/views/tool/component/ToolListContainer.vue @@ -213,7 +213,7 @@