修复:修复后台删除用户后列表残留

This commit is contained in:
xiaowang
2026-03-26 16:55:30 +08:00
parent be596f15d1
commit c0eae0ef03
5 changed files with 112 additions and 4 deletions
+2
View File
@@ -1013,6 +1013,8 @@ const handleDelete = async (record: any) => {
await fetchUserList()
return
}
userList.value = userList.value.filter(user => user.id !== record.id)
pagination.total = Math.max(0, Number(pagination.total || 0) - 1)
message.success('已移除当前店铺下的用户绑定')
await fetchUserList()
} catch (error) {