mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-06 07:21:24 +08:00
Added page frame
This commit is contained in:
@@ -2,7 +2,29 @@ import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: []
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
component: async () => await import('@/pages/Main.vue'),
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
redirect: 'home'
|
||||
},
|
||||
{
|
||||
path: '/home',
|
||||
component: async () => await import('@/pages/home/Home.vue'),
|
||||
name: 'home',
|
||||
meta: {
|
||||
title: '首页',
|
||||
icon: IconPinnacleHome,
|
||||
requiresScrollbar: false,
|
||||
requiresPadding: true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
export default router
|
||||
|
||||
Reference in New Issue
Block a user