feat: 产品页面搭建
This commit is contained in:
@@ -49,7 +49,7 @@ router.beforeEach(
|
||||
// // resetRouter(); // 预留
|
||||
// return next();
|
||||
// }
|
||||
|
||||
console.log(`to---`,to)
|
||||
// 4、判断访问页面是否在路由白名单地址[静态路由]中,如果存在直接放行。
|
||||
if (ROUTER_WHITE_LIST.includes(to.path))
|
||||
return next();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
import { HOME_URL } from '@/config';
|
||||
import type {RouteRecordRaw} from 'vue-router';
|
||||
import {HOME_URL} from '@/config';
|
||||
|
||||
// LayoutRouter[布局路由]
|
||||
export const layoutRouter: RouteRecordRaw[] = [
|
||||
@@ -31,6 +31,16 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
isDefaultChat: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/products',
|
||||
name: 'products',
|
||||
component: () => import('@/pages/product/index.vue'), path: '/products',
|
||||
meta: {
|
||||
title: '产品页面',
|
||||
keepAlive: true, // 如果需要缓存
|
||||
isDefaultChat: false // 根据实际情况设置
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user