Browse Source

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

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

* fix: 修复 角色管理 编辑角色时,角色状态不正确
tawen 1 year ago
parent
commit
d33ccd042f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/demo/system/role/role.data.ts

+ 2 - 2
src/views/demo/system/role/role.data.ts

@@ -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;