fix : 修复用户管理,角色管理提交时, 一直loading的bug
This commit is contained in:
@@ -214,7 +214,10 @@ const checkBoxChange = (val) => {
|
||||
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()
|
||||
values.menuIds = checkChange()
|
||||
operate(values).then(res=>{
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user