diff --git a/front/src/store/auth.js b/front/src/store/auth.js index a87d8ba7820ca35fb74c5f7ae7799a9615bfb39b..49f8ddde54121a51b09a7d9aaa14ad56966654d0 100644 --- a/front/src/store/auth.js +++ b/front/src/store/auth.js @@ -22,7 +22,9 @@ export default { }, getters: { header: state => { - return 'JWT ' + state.token + if (state.token) { + return 'JWT ' + state.token + } } }, mutations: {