摘要: export default new Router({ routes: [ { path: '/', name: 'index', component: index, children: [ { path: '/demo', name: 'demo', component: HelloWorld, 阅读全文
posted @ 2019-03-27 10:25 Webwhl 阅读(2331) 评论(0) 推荐(0) 编辑
摘要: <li v-for="article in articles" @click="getDescribe(article.id)"> getDescribe(id) { // 直接调用$router.push 实现携带参数的跳转 this.$router.push({ path: `/describe 阅读全文
posted @ 2019-03-27 10:24 Webwhl 阅读(183) 评论(0) 推荐(0) 编辑