import Vue from 'vue'
import Router from 'vue-router'
import winIndex from './winIndex.js';
Vue.use(Router)
export default new Router({
routes: [
...winIndex,//引入路由wenj
{
path: '/login',
name: 'login',
component: () => import('@/components/login'),//登录
},
{
path: '/',
name: 'index',
component: () => import('@/components/index'),
children: [
{ path: '/dade', component: () => import('../views/index.vue')},
]
}
]
})
let router = [
{
path: '/dade/new',
name: 'login',
component: () => import('../views/index.vue')
},
{
path: '/dade/new2',
name: 'login',
component: () => import('../views/index.vue')
}
]
export default router
标签:index,vue,component,多路,import,router,path,login
From: https://blog.csdn.net/qq_34631220/article/details/140408503