Fix #172: broken login
This commit is contained in:
parent
93c57f08f9
commit
b602ed38e7
|
@ -0,0 +1 @@
|
||||||
|
Fixed broken login due to badly configured Axios (#172)
|
|
@ -42,7 +42,7 @@ Vue.directive('title', {
|
||||||
axios.defaults.baseURL = config.API_URL
|
axios.defaults.baseURL = config.API_URL
|
||||||
axios.interceptors.request.use(function (config) {
|
axios.interceptors.request.use(function (config) {
|
||||||
// Do something before request is sent
|
// Do something before request is sent
|
||||||
if (store.state.auth.authenticated) {
|
if (store.state.auth.token) {
|
||||||
config.headers['Authorization'] = store.getters['auth/header']
|
config.headers['Authorization'] = store.getters['auth/header']
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
|
|
Loading…
Reference in New Issue