File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
ui/src/views/application/component Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -237,10 +237,15 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
237237 workflowDefault .value .nodes [0 ].properties .node_data .name = applicationForm .value .name
238238 applicationForm .value [' work_flow' ] = workflowDefault .value
239239 }
240+ loading .value = true
240241 applicationApi
241- .postApplication ({ ... applicationForm .value , folder_id: currentFolder .value }, loading )
242- .then (async (res ) => {
243- await user .profile ()
242+ .postApplication ({ ... applicationForm .value , folder_id: currentFolder .value })
243+ .then ((res ) => {
244+ return user .profile ().then (() => {
245+ return res
246+ })
247+ })
248+ .then ((res ) => {
244249 MsgSuccess (t (' common.createSuccess' ))
245250 emit (' refresh' )
246251 if (isWorkFlow (applicationForm .value .type )) {
@@ -249,6 +254,8 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
249254 router .push ({ path: ` /application/workspace/${res .data .id }/${res .data .type }/setting ` })
250255 }
251256 dialogVisible .value = false
257+ }).finally (() => {
258+ loading .value = false
252259 })
253260 }
254261 })
You can’t perform that action at this time.
0 commit comments