Blame view
src/Services/http.js
313 Bytes
03dcbf0c1
|
1 2 3 4 5 |
import axios from 'axios' import store from '@/store/store' export default () => { return axios.create({ |
5ba0395a4
|
6 7 |
// baseURL:'http://192.168.2.221:3002/v1', baseURL:'http://13.234.251.173:8001/v1', |
03dcbf0c1
|
8 9 10 11 12 |
headers: { Authorization: `Bearer ${store.state.token}` } }) } |