Merge remote-tracking branch 'origin/feature/0905_登录注册流程重构' into test

This commit is contained in:
rd
2025-09-15 14:55:31 +08:00
4 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template>
<ConfigProvider :locale="zhCN" :theme="redTheme">
<router-view v-if="$route.path === '/login' || ['ExploreList', 'ExploreDetail', 'Trial'].includes($route.name)" />
<router-view v-if="$route.meta.withoutLayout" />
<LayoutBasic v-else />
</ConfigProvider>
</template>

View File

@ -22,6 +22,7 @@ export const router = createRouter({
meta: {
requiresAuth: false,
requireLogin: false,
withoutLayout: true,
},
},
{
@ -50,6 +51,7 @@ export const router = createRouter({
meta: {
requiresAuth: false,
requireLogin: true,
withoutLayout: true,
},
},

View File

@ -120,6 +120,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requireLogin: false,
hideFooter: true,
hideSidebar: true,
withoutLayout: true,
roles: ['*'],
},
component: () => import('@/views/material-center/components/finished-products/explore/list/index.vue'),
@ -133,6 +134,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requireLogin: false,
hideFooter: true,
hideSidebar: true,
withoutLayout: true,
roles: ['*'],
},
component: () => import('@/views/material-center/components/finished-products/explore/detail/index.vue'),

View File

@ -19,5 +19,6 @@ declare module 'vue-router' {
requireLogin?: boolean; // 是否需要登陆才能访问
independent?: boolean; // 独立于layout的路由
group?: string; // 路由分组
withoutLayout?: boolean; // 不使用layout默认false
}
}