mounted() {
var reg=/\/article\/(\d)/
this.$route.path.match(reg)[1]
this.fetchData()
}
将心比心,方得人心~
周洲 2018-03-04 18:22:33
mounted() {
var reg=/\/article\/(\d)/
this.$route.path.match(reg)[1]
this.fetchData()
}
『微信打赏』
Tag标签: vue
上一篇: Vue 转义输出文章内容
下一篇: axios 配置