loading问题

pull/14/head
gexinzhineng/gxzn27 2023-03-06 15:57:06 +08:00
parent 269aabd6df
commit cc7fb7e43f
1 changed files with 2 additions and 2 deletions

View File

@ -416,12 +416,12 @@ const submitForm = async () => {
try {
const data = unref(formRef)?.formModel as UserApi.UserVO
if (actionType.value === 'create') {
await UserApi.createUserApi(data)
loading.value = true
await UserApi.createUserApi(data)
message.success(t('common.createSuccess'))
} else {
await UserApi.updateUserApi(data)
loading.value = true
await UserApi.updateUserApi(data)
message.success(t('common.updateSuccess'))
}
dialogVisible.value = false