Skip to content

Commit 6b23469

Browse files
committed
fix: reorder user profile update in application creation flow
--bug=1062351 --user=刘瑞斌 【应用】创建应用时,快速点击创建按钮,可重复创建应用 https://www.tapd.cn/62980211/s/1780369
1 parent 10b66db commit 6b23469

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ui/src/views/application/component/CreateApplicationDialog.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,6 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
239239
}
240240
applicationApi
241241
.postApplication({ ...applicationForm.value, folder_id: currentFolder.value }, loading)
242-
.then((res) => {
243-
return user.profile().then(() => {
244-
return res
245-
})
246-
})
247242
.then((res) => {
248243
MsgSuccess(t('common.createSuccess'))
249244
emit('refresh')
@@ -254,6 +249,11 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
254249
}
255250
dialogVisible.value = false
256251
})
252+
.then((res) => {
253+
return user.profile().then(() => {
254+
return res
255+
})
256+
})
257257
}
258258
})
259259
}

0 commit comments

Comments
 (0)