123456789101112131415161718192021222324252627282930313233343536373839 |
- import BlankLayout from '@/layouts/BlankLayout.vue'
- import BasicLayout from '@/layouts/BasicLayout.vue'
- import type { RouteRecordRaw } from 'vue-router'
- const constantRouter: RouteRecordRaw[] = [
- {
- path: '/',
- name: 'layout',
- component: BasicLayout,
- redirect: '/home',
- children: [
- {
- path: 'home',
- name: 'home',
- component: () => import('@/views/HomeView.vue'),
- meta: {
- title: '首页'
- }
- },
- {
- path: 'about',
- name: 'about',
- component: () => import('@/views/AboutView.vue'),
- meta: {
- title: '关于我们'
- }
- }
- ]
- },
-
- {
- path: '/admin',
- name: 'admin',
- component: BlankLayout,
- children: []
- }
- ]
- export default constantRouter
|