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, {
|
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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue