fix: 新增修改校验不通过,页面一直loading问题
Former-commit-id: fc1dc88ba888fae28b57d28e8c753d4ce798b349
This commit is contained in:
@@ -111,9 +111,9 @@ function openDialog(roleId?: number) {
|
||||
* 角色表单提交
|
||||
*/
|
||||
function handleSubmit() {
|
||||
loading.value = true;
|
||||
roleFormRef.value.validate((valid: any) => {
|
||||
if (valid) {
|
||||
loading.value = true;
|
||||
const roleId = formData.id;
|
||||
if (roleId) {
|
||||
updateRole(roleId, formData)
|
||||
|
||||
Reference in New Issue
Block a user