调用了接口

This commit is contained in:
2020-10-09 09:45:13 +08:00
parent 1d0b8f2043
commit 645001f128
3 changed files with 22 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import axios from 'axios'
axios.defaults.baseURL = 'https://theluyuan.com/api/';
axios.defaults.baseURL = 'http://beelink.com/home/';
axios.defaults.headers.common['Authorization'] = 'token';
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';