Explorar el Código

fix: 用户分配角色bug fix

zhangying hace 11 meses
padre
commit
78a5984d8c
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      vue/src/views/system/role/roleUser.vue

+ 3 - 0
vue/src/views/system/role/roleUser.vue

@@ -202,6 +202,9 @@ export default defineComponent({
     };
 
     const saveRoleUser = () => {
+      if (!targetKeys.value || targetKeys.value.length === 0) {
+        return false;
+      }
       saveRoleUserList(searchParamsState.roleID, targetKeys.value).then(() => {
         visibleUserModal.value = false;
         loadRoleUserList();