$router.push() & $http.get()

$router.push() 

this.$router.push('about')
this.$router.push({path: 'productList', query: {id: id}})



$http.get() 

const {data: res} = await this.$http.get('home')
const {data: res} = await this.$http.get( 'productDetails', { params: {id: this.id} } )
posted @ 2020-12-02 10:48  山阴  阅读(144)  评论(0)    收藏  举报