This commit is contained in:
wangzenghua 2025-04-23 09:52:41 +01:00
parent f7cdcce8cb
commit 900bbbada4
2 changed files with 17 additions and 17 deletions

View File

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

View File

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