diff --git a/apps/web-antd/src/layouts/basic.vue b/apps/web-antd/src/layouts/basic.vue
index ab1832c2..630d8bdd 100644
--- a/apps/web-antd/src/layouts/basic.vue
+++ b/apps/web-antd/src/layouts/basic.vue
@@ -1,4 +1,6 @@
diff --git a/apps/web-antd/src/views/demos/access/index.vue b/apps/web-antd/src/views/demos/access/index.vue
index 9bb5be54..7955d335 100644
--- a/apps/web-antd/src/views/demos/access/index.vue
+++ b/apps/web-antd/src/views/demos/access/index.vue
@@ -41,12 +41,17 @@ async function changeAccount(role: string) {
const account = accounts[role];
resetAllStores();
- await accessStore.authLogin(account, async () => {
- router.go(0);
- });
+ if (account) {
+ await accessStore.authLogin(account, async () => {
+ router.go(0);
+ });
+ }
}
async function handleToggleAccessMode() {
+ if (!accounts.super) {
+ return;
+ }
await toggleAccessMode();
resetAllStores();
diff --git a/apps/web-ele/src/layouts/basic.vue b/apps/web-ele/src/layouts/basic.vue
index ab1832c2..630d8bdd 100644
--- a/apps/web-ele/src/layouts/basic.vue
+++ b/apps/web-ele/src/layouts/basic.vue
@@ -1,4 +1,6 @@
diff --git a/packages/effects/layouts/src/basic/layout.vue b/packages/effects/layouts/src/basic/layout.vue
index b3e4c606..dd6099de 100644
--- a/packages/effects/layouts/src/basic/layout.vue
+++ b/packages/effects/layouts/src/basic/layout.vue
@@ -1,4 +1,6 @@