parent
ec8be6c501
commit
ed2ca6f406
|
|
@ -16,16 +16,21 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/dashboard',
|
meta: { hidden: true },
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'dashboard',
|
|
||||||
component: () => import('@/views/dashboard/index.vue'),
|
|
||||||
name: 'Dashboard',
|
|
||||||
meta: { title: 'dashboard', icon: 'homepage', affix: true },
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// path: '/',
|
||||||
|
// component: Layout,
|
||||||
|
// redirect: '/dashboard',
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: 'dashboard',
|
||||||
|
// component: () => import('@/views/dashboard/index.vue'),
|
||||||
|
// name: 'Dashboard',
|
||||||
|
// meta: { title: 'dashboard', icon: 'homepage', affix: true },
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
];
|
];
|
||||||
/**
|
/**
|
||||||
* 创建路由
|
* 创建路由
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
<template>
|
|
||||||
<main class="main">这是首页</main>
|
|
||||||
</template>
|
|
||||||
<script setup lang="ts"></script>
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.main {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
Loading…
Reference in New Issue