vuecli3创建项目(二)路由的引入
1. 导入路由组件 npm install vue-router --save 2.配置路由 在router文件夹中创建index.js文件 `import Vue from 'vue'; import VueRouter from 'vue-router'; Vue.use(VueRouter); const Index = ()`=>import ('views/tab-item/index/Index.vue');//设置别名 const Notice = ()=>import ('views/tab-item/notice/Notice') const routes =[ {p
下载地址
用户评论