fix : 修复用户管理,角色管理提交时, 一直loading的bug

This commit is contained in:
2024-08-18 11:11:08 +08:00
parent b6b1c8a3ff
commit ce2d39e3bf
3 changed files with 91 additions and 84 deletions

View File

@@ -268,7 +268,10 @@ const getInfo = async () => {
const handleSubmit = async () => {
const loading = ElLoading.service({fullscreen: true})
const {isValidate} = await form.value.validate()
if (!isValidate) return Promise.reject()
if (!isValidate) {
loading.close()
return Promise.reject()
}
const values = form.value.getValues()
operate(values, route.query.userType).then(res => {
ElNotification({