贴代码:
1、/src/router/index.js
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
import Vue from 'vue' const router = new VueRouter({ routes: [ { path: '/', component: () => import('@/pages/List') }, { path: '/index'
贴代码:
1、/src/router/index.js
import Vue from 'vue' const router = new VueRouter({ routes: [ { path: '/', component: () => import('@/pages/List') }, { path: '/index'