From 53b2b23620a74ce2f61bf6e4787ad3f14e1092e1 Mon Sep 17 00:00:00 2001 From: 1xuanyuan1 <6700408+1xuanyuan1@users.noreply.github.com> Date: Wed, 18 Jan 2023 11:15:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E4=B8=8D=E7=94=9F=E6=95=88=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#2488)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 戴文俊 --- src/hooks/web/usePermission.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/web/usePermission.ts b/src/hooks/web/usePermission.ts index bfff591da..c367875f1 100644 --- a/src/hooks/web/usePermission.ts +++ b/src/hooks/web/usePermission.ts @@ -30,7 +30,7 @@ export function usePermission() { async function togglePermissionMode() { appStore.setProjectConfig({ permissionMode: - projectSetting.permissionMode === PermissionModeEnum.BACK + appStore.projectConfig?.permissionMode === PermissionModeEnum.BACK ? PermissionModeEnum.ROUTE_MAPPING : PermissionModeEnum.BACK, });