首页目录创建
This commit is contained in:
+11
-1
@@ -6,6 +6,7 @@
|
||||
import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
import Layout from '@/layouts'
|
||||
import Home from '@/views/home'
|
||||
import EmptyLayout from '@/layouts/EmptyLayout'
|
||||
import { publicPath, routerMode } from '@/config'
|
||||
|
||||
@@ -38,6 +39,15 @@ export const constantRoutes = [
|
||||
export const asyncRoutes = [
|
||||
{
|
||||
path: '/',
|
||||
component: Home,
|
||||
meta: {
|
||||
title: '首页',
|
||||
icon: 'home',
|
||||
affix: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/index',
|
||||
component: Layout,
|
||||
redirect: 'index',
|
||||
children: [
|
||||
@@ -46,7 +56,7 @@ export const asyncRoutes = [
|
||||
name: 'Index',
|
||||
component: () => import('@/views/index/index'),
|
||||
meta: {
|
||||
title: '首页',
|
||||
title: '主页',
|
||||
icon: 'home',
|
||||
affix: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user