From 2a276eed89889054268fac0296a67172fbe745c4 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 25 Nov 2026 17:12:03 +0800 Subject: [PATCH] fix(permission): clear every selected user, not just the filtered ones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "清空" reset the checkbox model and then ran it through the merge handler, which deliberately keeps selections outside the current search. With a search active, the hidden users stayed in the pending list and were submitted with the rule. Reset the pending list and the model directly. Co-Authored-By: Claude Sonnet 5 --- frontend/src/views/system/permission/SelectPermission.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/system/permission/SelectPermission.vue b/frontend/src/views/system/permission/SelectPermission.vue index 624972bb8..425d63f39 100644 --- a/frontend/src/views/system/permission/SelectPermission.vue +++ b/frontend/src/views/system/permission/SelectPermission.vue @@ -198,8 +198,9 @@ const clearWorkspace = (val: any) => { } const clearWorkspaceAll = () => { + checkTableList.value = [] checkedWorkspace.value = [] - handleCheckedWorkspaceChange([]) + syncCheckedState() } defineExpose({