1
0
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:
2023-05-01 22:10:03 +08:00
parent bbc51f21ec
commit ac3b71102c
10 changed files with 401 additions and 12 deletions

View File

@@ -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