Skip to content

Commit 8bda64e

Browse files
committed
Changed "commit" to "dispatch"
1 parent cf49209 commit 8bda64e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ router.beforeEach(async (to, from, next) => {
296296
const expirationDate = new Date(store.state.userToken.expiration * 1000)
297297
if (today > expirationDate) {
298298
console.info('- user token is expired!')
299-
store.commit('logout')
299+
store.dispatch('logout')
300300
next({ name: 'login', query: { redirect: to.path } });
301301
}
302302
}

0 commit comments

Comments
 (0)