前端 restful风格传参

364 阅读1分钟
this.$axios.get('/api/common/list/'+this.name+'/'+this.mark) //重点,直接把参数拼接到请求地址后面,不需要参数名字!!
.then(data=> {
    
}).catch(error=> {
  
});