update router/index.js
This commit is contained in:
parent
62cdedb9df
commit
3cdcf5303f
@ -77,10 +77,26 @@ export const constantRoutes = [
|
||||
name: 'Profile',
|
||||
meta: { title: '个人中心', icon: 'user' }
|
||||
}]
|
||||
}];
|
||||
},
|
||||
// 不用可删掉
|
||||
{
|
||||
path: '',
|
||||
component: Layout,
|
||||
hidden: false,
|
||||
meta: { title: '组件示例', icon: 'icon', noCache: 'fasle' },
|
||||
children: [
|
||||
{
|
||||
path: 'icon',
|
||||
component: () => import('@/views/components/icons/index'),
|
||||
name: 'icon',
|
||||
meta: { title: '图标icon', icon: 'icon1', noCache: 'fasle' }
|
||||
}]
|
||||
},
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.VITE_APP_ROUTER_PREFIX),
|
||||
history: createWebHistory(
|
||||
import.meta.env.VITE_APP_ROUTER_PREFIX),
|
||||
routes: constantRoutes,
|
||||
// scrollBehavior(to, from, savedPosition) {
|
||||
// if (savedPosition) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user