提交 2a7782df authored 作者: 王鹏飞's avatar 王鹏飞

新增默认首页

上级 c5076f02
const routes = [
{
path: '/index',
component: () => import('@/components/layout/Index.vue')
}
]
export { routes }
...@@ -4,7 +4,7 @@ import beforeEnter from '@/utils/beforeEnter' ...@@ -4,7 +4,7 @@ import beforeEnter from '@/utils/beforeEnter'
Vue.use(VueRouter) Vue.use(VueRouter)
const routes = [{ path: '*', redirect: '/dashboard' }] const routes = [{ path: '*', redirect: '/index' }]
const router = new VueRouter({ const router = new VueRouter({
mode: 'history', mode: 'history',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论