Skip to content

Commit 1cebe98

Browse files
committed
Fix redirect to login on missing token
1 parent 0dc0b9e commit 1cebe98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

generator/templates/Default/src/store/modules/authorisation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export default {
1111
},
1212
},
1313
actions: {
14-
logout(state) {
15-
state.token = '';
14+
logout(context) {
15+
context.commit('setAuthorisationToken', '');
1616

1717
router.push({
1818
name: 'login',

0 commit comments

Comments
 (0)