This commit is contained in:
李想 2025-04-23 17:16:03 +08:00
commit 896a411a22
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,
{
path: '/test',