请求链接(测试使用)
1.侃爷语录(get请求)
axiosGet () { axios.get('https://api.kanye.rest/').then(response => { this.quote = response.data.quote }).catch(err => { console.log(err) }) },
2.post请求
createPost () { axios.post('https://jsonplaceholder.typicode.com/posts', JSON.stringify({ title: 'foo', body: 'bar', userId: 1 })).then(response => { console.log(response) }) },

浙公网安备 33010602011771号