From d33ccd042fd027f53790b2f123446856e06278ef Mon Sep 17 00:00:00 2001 From: tawen Date: Wed, 14 Jun 2023 06:08:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E7=AE=A1=E7=90=86=20=E7=BC=96=E8=BE=91=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E8=A7=92=E8=89=B2=E7=8A=B6=E6=80=81=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=20(#2861)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复 Cannot access 'pagewrapper' before initialization * fix: 修复 角色管理 编辑角色时,角色状态不正确 --- src/views/demo/system/role/role.data.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/demo/system/role/role.data.ts b/src/views/demo/system/role/role.data.ts index 7f6e0d21..ace0af29 100644 --- a/src/views/demo/system/role/role.data.ts +++ b/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;