http.js 308 Bytes edit raw blame history 1 2 3 4 5 6 7 8 9 10 11 12 import axios from 'axios' import store from '@/store/store' export default () => { return axios.create({ baseURL:'http://192.168.2.221:3002/v1', // baseURL:'http://139.59.58.160:8001' headers: { Authorization: `Bearer ${store.state.token}` } }) }