|
@@ -30,17 +30,17 @@ import Layout from '@/layout'
|
|
|
|
|
|
// 公共路由
|
|
|
export const constantRoutes = [
|
|
|
- {
|
|
|
- path: '/redirect',
|
|
|
- component: Layout,
|
|
|
- hidden: true,
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/redirect/:path(.*)',
|
|
|
- component: () => import('@/views/redirect')
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // path: '/redirect',
|
|
|
+ // component: Layout,
|
|
|
+ // hidden: true,
|
|
|
+ // children: [
|
|
|
+ // {
|
|
|
+ // path: '/redirect/:path(.*)',
|
|
|
+ // component: () => import('@/views/redirect')
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // },
|
|
|
{
|
|
|
path: '/login',
|
|
|
component: () => import('@/views/login'),
|
|
@@ -72,7 +72,7 @@ export const constantRoutes = [
|
|
|
redirect: 'index',
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'index',
|
|
|
+ path: '/index',
|
|
|
component: () => import('@/views/index'),
|
|
|
name: 'Index',
|
|
|
meta: { title: '首页', icon: 'dashboard', affix: true }
|