如何新建话题,上传至后台数据
发布于 5 年前 作者 liuhaidan1025 4173 次浏览 来自 问答
粉丝福利 : 关注VUE中文社区公众号,回复视频领取粉丝福利

axios .post(“https://www.vue-js.com/api/v1/topics”, { title: this.title, tab: this.tab, content: this.text }) .then(res => { console.log(res.data); });

	报错显示POST https://www.vue-js.com/api/v1/topics 403 (Forbidden)

createError.js?2d83:16 Uncaught (in promise) Error: Request failed with status code 403 at createError (createError.js?2d83:16) at settle (settle.js?467f:17) at XMLHttpRequest.handleLoad (xhr.js?b50d:59)

回到顶部