| 12345678910111213141516171819202122232425262728293031323334353637 |
- import type { RouteRecordRaw } from 'vue-router'
- const Layout = () => import('@/layouts/index.vue')
- const routes: RouteRecordRaw = {
- path: '/example',
- component: Layout,
- redirect: '/example/index',
- name: 'Example',
- meta: {
- title: '演示',
- type: 0,
- },
- children: [
- {
- path: 'index',
- name: 'ExampleIndex',
- component: () => import('@/views/example/index.vue'),
- meta: {
- title: '演示页面',
- Type: 1,
- },
- },
- {
- path: 'ceshi',
- name: 'Exampleceshi',
- component: () => import('@/views/example/ceshi.vue'),
- meta: {
- title: '权限测试',
- Type: 1,
-
- },
- },
- ],
- }
- export default routes
|