diff --git a/ui/src/views/application/component/CreateApplicationDialog.vue b/ui/src/views/application/component/CreateApplicationDialog.vue index 74f025ddd..c6e303ca2 100644 --- a/ui/src/views/application/component/CreateApplicationDialog.vue +++ b/ui/src/views/application/component/CreateApplicationDialog.vue @@ -239,7 +239,8 @@ const submitHandle = async (formEl: FormInstance | undefined) => { } applicationApi .postApplication({ ...applicationForm.value, folder_id: currentFolder.value }, loading) - .then((res) => { + .then(async (res) => { + await user.profile() MsgSuccess(t('common.createSuccess')) emit('refresh') if (isWorkFlow(applicationForm.value.type)) { @@ -249,11 +250,6 @@ const submitHandle = async (formEl: FormInstance | undefined) => { } dialogVisible.value = false }) - .then((res) => { - return user.profile().then(() => { - return res - }) - }) } }) }