Commit d33ccd042fd027f53790b2f123446856e06278ef
Committed by
GitHub
1 parent
08f479f3
fix: 修复 角色管理 编辑角色时,角色状态不正确 (#2861)
* fix: 修复 Cannot access 'pagewrapper' before initialization * fix: 修复 角色管理 编辑角色时,角色状态不正确
Showing
1 changed file
with
2 additions
and
2 deletions
src/views/demo/system/role/role.data.ts
... | ... | @@ -30,8 +30,8 @@ export const columns: BasicColumn[] = [ |
30 | 30 | } |
31 | 31 | return h(Switch, { |
32 | 32 | checked: record.status === '1', |
33 | - checkedChildren: '已启用', | |
34 | - unCheckedChildren: '已禁用', | |
33 | + checkedChildren: '停用', | |
34 | + unCheckedChildren: '启用', | |
35 | 35 | loading: record.pendingStatus, |
36 | 36 | onChange(checked: boolean) { |
37 | 37 | record.pendingStatus = true; | ... | ... |