经过4天的努力总算把 两个模块开发出来了,经过一晚上的在云服务器的配置,总算可以发不了哈哈
This commit is contained in:
@@ -2,20 +2,18 @@ import axios from 'axios'
|
||||
|
||||
const service = axios.create(
|
||||
{
|
||||
baseURL: 'http://localhost:8081',
|
||||
// baseURL: 'http://localhost:8081',
|
||||
baseURL: 'http://49.233.4.79:8081',
|
||||
timeout: 5000
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
// service.interceptors.request.use(
|
||||
// config => {
|
||||
// if (true) {
|
||||
// config.headers['Authorization'] = 'Bearer' + getToken('user-token')
|
||||
// }
|
||||
// return config
|
||||
// // if (true) {
|
||||
// // config.headers['Authorization'] = 'Bearer' + getToken('user-token')
|
||||
// // }
|
||||
// // return config
|
||||
// },
|
||||
// error => {
|
||||
// console.log(error)
|
||||
|
||||
Reference in New Issue
Block a user