fix: 修复 角色管理 编辑角色时,角色状态不正确 (#2861)
* fix: 修复 Cannot access 'pagewrapper' before initialization * fix: 修复 角色管理 编辑角色时,角色状态不正确
This commit is contained in:
parent
08f479f3e1
commit
d33ccd042f
|
|
@ -30,8 +30,8 @@ export const columns: BasicColumn[] = [
|
|||
}
|
||||
return h(Switch, {
|
||||
checked: record.status === '1',
|
||||
checkedChildren: '已启用',
|
||||
unCheckedChildren: '已禁用',
|
||||
checkedChildren: '停用',
|
||||
unCheckedChildren: '启用',
|
||||
loading: record.pendingStatus,
|
||||
onChange(checked: boolean) {
|
||||
record.pendingStatus = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue