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