fix: reorder user profile update in application creation flow

--bug=1062351 --user=刘瑞斌 【应用】创建应用时,快速点击创建按钮,可重复创建应用 https://www.tapd.cn/62980211/s/1780369
This commit is contained in:
CaptainB 2025-09-28 10:56:08 +08:00
parent 10b66db914
commit 6b23469c29

View File

@ -239,11 +239,6 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
}
applicationApi
.postApplication({ ...applicationForm.value, folder_id: currentFolder.value }, loading)
.then((res) => {
return user.profile().then(() => {
return res
})
})
.then((res) => {
MsgSuccess(t('common.createSuccess'))
emit('refresh')
@ -254,6 +249,11 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
}
dialogVisible.value = false
})
.then((res) => {
return user.profile().then(() => {
return res
})
})
}
})
}