|
@@ -91,7 +91,7 @@ export const constantRoutes = [
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- path: '',
|
|
|
+ path: '/',
|
|
|
component: Layout,
|
|
|
redirect: 'index',
|
|
|
children: [
|
|
@@ -103,19 +103,19 @@ export const constantRoutes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- // {
|
|
|
- // path: '',
|
|
|
- // component: Layout,
|
|
|
- // redirect: 'index',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'weather',
|
|
|
- // component: () => import('@/views/fusion/index'),
|
|
|
- // name: 'weather',
|
|
|
- // meta: {title: '首页', icon: 'dashboard', affix: true}
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
+ {
|
|
|
+ path: '/',
|
|
|
+ component: Layout,
|
|
|
+ redirect: 'weather',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'weather',
|
|
|
+ component: () => import('@/views/fusion/index'),
|
|
|
+ name: 'weather',
|
|
|
+ meta: {title: '首页', icon: 'dashboard', affix: true}
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
{
|
|
|
path: '/user',
|
|
|
component: Layout,
|