Skip to content

Commit 6f392b7

Browse files
committed
feat: refactor application creation to await user profile update
--bug=1062377 --user=刘瑞斌 【应用】新建简易应用没有打开应用编辑界面 https://www.tapd.cn/62980211/s/1780590
1 parent 2922f9e commit 6f392b7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
239239
}
240240
applicationApi
241241
.postApplication({ ...applicationForm.value, folder_id: currentFolder.value }, loading)
242-
.then((res) => {
242+
.then(async (res) => {
243+
await user.profile()
243244
MsgSuccess(t('common.createSuccess'))
244245
emit('refresh')
245246
if (isWorkFlow(applicationForm.value.type)) {
@@ -249,11 +250,6 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
249250
}
250251
dialogVisible.value = false
251252
})
252-
.then((res) => {
253-
return user.profile().then(() => {
254-
return res
255-
})
256-
})
257253
}
258254
})
259255
}

0 commit comments

Comments
 (0)