Commit ef15cded0dca9b45c0606cad09eb9f142ec30fd3
1 parent
6ded0fac70
Exists in
master
and in
3 other branches
fix 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', |
8 | headers: { | 8 | headers: { |
9 | Authorization: `Bearer ${store.state.token}` | 9 | Authorization: `Bearer ${store.state.token}` |
10 | } | 10 | } |
11 | }) | 11 | }) |
12 | } | 12 | } |
13 | 13 |