mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:09:19 +08:00
fix: 修复未登录停留在在欢迎页
This commit is contained in:
@@ -65,7 +65,7 @@ const showDot = computed(() =>
|
|||||||
notifications.value.some((item) => !item.isRead),
|
notifications.value.some((item) => !item.isRead),
|
||||||
);
|
);
|
||||||
|
|
||||||
// 登录布局挂载:已登录才建 SSE 与导入任务(welcome 等 ignoreAccess 页未登录也会进此布局)
|
// 登录布局挂载:已登录才建 SSE 与导入任务
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!accessStore.accessToken) {
|
if (!accessStore.accessToken) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ const staticRoutes: RouteRecordRaw[] = [
|
|||||||
meta: {
|
meta: {
|
||||||
title: '首页',
|
title: '首页',
|
||||||
hideInMenu: true,
|
hideInMenu: true,
|
||||||
ignoreAccess: true,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user