|
@@ -2,7 +2,7 @@ import axios from 'axios'
|
|
import { getToken, removeToken, setToken } from './auth'
|
|
import { getToken, removeToken, setToken } from './auth'
|
|
// create an axios instance
|
|
// create an axios instance
|
|
const service = axios.create({
|
|
const service = axios.create({
|
|
- baseURL: 'http://localhost:8989', // url = base url + request url
|
|
|
|
|
|
+ baseURL: 'http://jzmanagerweb.aiyangniu.net', // url = base url + request url
|
|
// withCredentials: true, // send cookies when cross-domain requests
|
|
// withCredentials: true, // send cookies when cross-domain requests
|
|
timeout: 5000 // request timeout
|
|
timeout: 5000 // request timeout
|
|
})
|
|
})
|