【更新】新增或编辑菜单失败后loading一直加载问题解决

pull/56/head
小诺 2022-11-09 20:15:38 +08:00 committed by 俞宝山
parent 05bb1d2f9d
commit e1780efdfd
1 changed files with 2 additions and 4 deletions

View File

@ -196,12 +196,10 @@
const param = parameterChanges(formData.value)
submitLoading.value = true
menuApi.submitForm(param, !param.id).then(() => {
submitLoading.value = false
visible = false
onClose()
emit('successful')
})
})
.catch(() => {
}).finally(() => {
submitLoading.value = false
})
}