Vue.prototype.$http.defaults.baseURL ="http://thapi.99dudesign.com/index.php/Api"
this.$http.post(‘/htt/House/house_lists/‘, {
type: 1
}).then((d)=>{
console.log(d)
})
标签:post defaults vue url default prototype baseurl ios div
Vue.prototype.$http.defaults.baseURL ="http://thapi.99dudesign.com/index.php/Api"
this.$http.post(‘/htt/House/house_lists/‘, {
type: 1
}).then((d)=>{
console.log(d)
})
标签:post defaults vue url default prototype baseurl ios div
原文地址:https://www.cnblogs.com/nns4/p/8504313.html