Blame view
src/Services/http.js
359 Bytes
03dcbf0c1
|
1 2 |
import axios from 'axios' import store from '@/store/store' |
68d742034
|
3 |
const baseDomain = "http://15.206.52.174:8001/v1"; |
29ac0dbb2
|
4 5 |
const baseURL = `${baseDomain}`; |
03dcbf0c1
|
6 7 |
export default () => { return axios.create({ |
68d742034
|
8 9 |
// baseURL: 'http://192.168.0.150:3002/v1', baseURL, |
03dcbf0c1
|
10 11 |
headers: { Authorization: `Bearer ${store.state.token}` |
04165779e
|
12 |
} |
03dcbf0c1
|
13 |
}) |
04165779e
|
14 |
} |