From 6f392b775c4e5d0c89fa1a681dab68ee5ec4e3f6 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Sun, 28 Sep 2025 17:11:04 +0800 Subject: [PATCH] feat: refactor application creation to await user profile update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1062377 --user=刘瑞斌 【应用】新建简易应用没有打开应用编辑界面 https://www.tapd.cn/62980211/s/1780590 --- .../application/component/CreateApplicationDialog.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 - }) - }) } }) }