This commit is contained in:
2018-11-13 22:55:22 +00:00
parent a31093d50d
commit 3bb38b795c
4 changed files with 13 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
import logger from "../utils/logit";
import { getToken } from "../utils/authutil";
import store from "../store";
export default {
status(response) {
@@ -17,7 +17,7 @@ export default {
return {
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
Authorization: "Bearer " + getToken()
Authorization: "Bearer " + store.state.apiToken
};
}
};