摘要:
export default new Router({ routes: [ { path: '/', name: 'index', component: index, children: [ { path: '/demo', name: 'demo', component: HelloWorld, 阅读全文
摘要:
<li v-for="article in articles" @click="getDescribe(article.id)"> getDescribe(id) { // 直接调用$router.push 实现携带参数的跳转 this.$router.push({ path: `/describe 阅读全文