摘要: 嵌套路由指的是在动态路由的基础上再加上附加的嵌套URL(即组件)。 阅读全文
posted @ 2018-10-16 14:41 后知_后觉 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 在components文件夹中新建一个.vue文件 修改App.vue,增加组件链接<router-link to=''></router-link> 修改router文件夹中的index.js文件 导入组件 import,设置路由 阅读全文
posted @ 2018-10-16 14:07 后知_后觉 阅读(136) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-10-16 10:08 后知_后觉 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、安装axios:npm i --save --save-exact axios vue-axios 2、在mian.js中导入axios:import axios from 'axios' import VueAxios from 'vue-axios' 3.注册到Vue全局组件中:Vue.us 阅读全文
posted @ 2018-10-16 09:33 后知_后觉 阅读(160) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-10-16 08:52 后知_后觉 阅读(3) 评论(0) 推荐(0) 编辑