fix: 新增修改校验不通过,页面一直loading问题

Former-commit-id: fc1dc88ba888fae28b57d28e8c753d4ce798b349
This commit is contained in:
张新龙
2023-07-06 18:08:06 +08:00
parent ca41d81292
commit e1ad6588e5
3 changed files with 3 additions and 3 deletions

View File

@@ -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)