From 88c3921df600d6f0f7279dfac54433a156221200 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Mon, 21 Oct 2024 12:20:40 +0800 Subject: [PATCH] 1 --- src/views/system/components/BatchUser.vue | 2 +- src/views/system/components/ModuleBatchUsers.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/system/components/BatchUser.vue b/src/views/system/components/BatchUser.vue index 806ee47..b5061e1 100644 --- a/src/views/system/components/BatchUser.vue +++ b/src/views/system/components/BatchUser.vue @@ -162,7 +162,7 @@ export default { try { batchUser({ id: this.form.id, - user_ids: Array.from(new Set([...selectRecords.map(row => row.id), ...this.form.user_ids])) + user_ids: Array.from(new Set([...selectRecords.map(row => row.id), ...this.form.user_ids])).filter(i => !!i) }) // 接口中角色信息有延迟 setTimeout(() => { diff --git a/src/views/system/components/ModuleBatchUsers.vue b/src/views/system/components/ModuleBatchUsers.vue index 7e2c478..b04c685 100644 --- a/src/views/system/components/ModuleBatchUsers.vue +++ b/src/views/system/components/ModuleBatchUsers.vue @@ -174,7 +174,7 @@ export default { batchRoles({ ...this.form, module_id: this.moduleId, - user_ids: Array.from(new Set([...selectRecords.map(row => row.id), this.form.user_ids])) + user_ids: Array.from(new Set([...selectRecords.map(row => row.id), this.form.user_ids])).filter(i => !!i) }) // 接口中角色信息有延迟 setTimeout(() => {