fix: 修复 角色管理 编辑角色时,角色状态不正确 (#2861)

* fix: 修复 Cannot access 'pagewrapper' before initialization

* fix: 修复 角色管理 编辑角色时,角色状态不正确
This commit is contained in:
tawen 2023-06-14 06:08:51 +08:00 committed by GitHub
parent 08f479f3e1
commit d33ccd042f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ export const columns: BasicColumn[] = [
} }
return h(Switch, { return h(Switch, {
checked: record.status === '1', checked: record.status === '1',
checkedChildren: '已启用', checkedChildren: '用',
unCheckedChildren: '已禁用', unCheckedChildren: '用',
loading: record.pendingStatus, loading: record.pendingStatus,
onChange(checked: boolean) { onChange(checked: boolean) {
record.pendingStatus = true; record.pendingStatus = true;