mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: reorder user profile update in application creation flow
--bug=1062351 --user=刘瑞斌 【应用】创建应用时,快速点击创建按钮,可重复创建应用 https://www.tapd.cn/62980211/s/1780369
This commit is contained in:
parent
10b66db914
commit
6b23469c29
|
|
@ -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
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue