Commit fe582921b6073d1d3dd13c05eaa0d5f0fe10cc62
1 parent
ef15cded0d
Exists in
master
and in
3 other branches
testing api-url in server
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/Services/http.js
1 | import axios from 'axios' | 1 | import axios from 'axios' |
2 | import store from '@/store/store' | 2 | import store from '@/store/store' |
3 | 3 | ||
4 | export default () => { | 4 | export default () => { |
5 | return axios.create({ | 5 | return axios.create({ |
6 | // baseURL:'http://192.168.2.221:3002/v1', | 6 | // baseURL:'http://192.168.2.221:3002/v1', |
7 | baseURL:'http://139.59.58.160:8001', | 7 | baseURL:'http://139.59.58.160:8001/v1', |
8 | headers: { | 8 | headers: { |
9 | Authorization: `Bearer ${store.state.token}` | 9 | Authorization: `Bearer ${store.state.token}` |
10 | } | 10 | } |
11 | }) | 11 | }) |
12 | } | 12 | } |
13 | 13 |