This commit is contained in:
13713575202 2025-04-23 16:53:32 +08:00
commit 1fb5b814d8
2 changed files with 17 additions and 17 deletions

View File

@ -1,3 +1,3 @@
<template>
<div></div>
<router-view />
</template>

View File

@ -1,5 +1,5 @@
import { createRouter, createWebHistory } from 'vue-router';
// import Layout from '@/layouts/index.vue';
import Layout from '@/layouts/index.vue';
import demoRouters from './modules/demo';
@ -16,21 +16,21 @@ export const constantRoutes = [
// component: () => import('@/views/error/403.vue'),
// hidden: true,
// },
// {
// path: '/',
// name: 'layout',
// component: Layout,
// redirect: '/home',
// meta: { title: '首页', icon: 'House' },
// children: [
// {
// path: '/home',
// component: () => import('@/views/home/index.vue'),
// name: 'home',
// meta: { title: '首页', icon: 'House' },
// },
// ],
// },
{
path: '/',
name: 'layout',
component: Layout,
redirect: '/home',
meta: { title: '首页', icon: 'House' },
children: [
{
path: '/home',
component: () => import('@/views/home/index.vue'),
name: 'home',
meta: { title: '首页', icon: 'House' },
},
],
},
...demoRouters,
];