【发布时间】:2019-10-10 23:55:12
【问题描述】:
我想写一个带有slug和id的vue Axios URL,但是我做不到。
请帮帮我。
axios.get('http://localhost/BUproject/postsByUser/' + slug / +id)
.then(response => {
this.postsByUser = response.data;
Vue.filter('myOwnTime', function (value) {
return moment(value).fromNow();
});
});
【问题讨论】: