Commit cc7fb7e4 by gexinzhineng/gxzn27

loading问题

parent 269aabd6
...@@ -416,12 +416,12 @@ const submitForm = async () => { ...@@ -416,12 +416,12 @@ const submitForm = async () => {
try { try {
const data = unref(formRef)?.formModel as UserApi.UserVO const data = unref(formRef)?.formModel as UserApi.UserVO
if (actionType.value === 'create') { if (actionType.value === 'create') {
await UserApi.createUserApi(data)
loading.value = true loading.value = true
await UserApi.createUserApi(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} else { } else {
await UserApi.updateUserApi(data)
loading.value = true loading.value = true
await UserApi.updateUserApi(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
dialogVisible.value = false dialogVisible.value = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment