|
@@ -3,8 +3,6 @@ import VueRouter from 'vue-router'
|
|
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
|
|
-const Layout = () => import('@/Layout/index.vue')
|
|
|
-
|
|
|
const routes = [
|
|
|
{
|
|
|
path: '/',
|
|
@@ -40,7 +38,7 @@ const routes = [
|
|
|
{
|
|
|
path: '/shopping-mall',
|
|
|
name: 'shopping-mall',
|
|
|
- component: Layout,
|
|
|
+ component: () => import('@/Layout/index.vue'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/',
|
|
@@ -54,7 +52,7 @@ const routes = [
|
|
|
{
|
|
|
path: '/mine',
|
|
|
name: 'mine',
|
|
|
- component: Layout,
|
|
|
+ component: () => import('@/Layout/index.vue'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/',
|