fix: reorder user profile update in application creation flow
--bug=1062351 --user=刘瑞斌 【应用】创建应用时,快速点击创建按钮,可重复创建应用 https://www.tapd.cn/62980211/s/1780369v3.2
parent
10b66db914
commit
6b23469c29
|
|
@ -239,11 +239,6 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
|
||||||
}
|
}
|
||||||
applicationApi
|
applicationApi
|
||||||
.postApplication({ ...applicationForm.value, folder_id: currentFolder.value }, loading)
|
.postApplication({ ...applicationForm.value, folder_id: currentFolder.value }, loading)
|
||||||
.then((res) => {
|
|
||||||
return user.profile().then(() => {
|
|
||||||
return res
|
|
||||||
})
|
|
||||||
})
|
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
MsgSuccess(t('common.createSuccess'))
|
MsgSuccess(t('common.createSuccess'))
|
||||||
emit('refresh')
|
emit('refresh')
|
||||||
|
|
@ -254,6 +249,11 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
|
||||||
}
|
}
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
})
|
})
|
||||||
|
.then((res) => {
|
||||||
|
return user.profile().then(() => {
|
||||||
|
return res
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue