update config.js file for lgout feature

This commit is contained in:
idiotalex@163.com 2021-04-15 17:57:52 +08:00
parent ca1b7fe025
commit 45e59ee998
3 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
presets: [],
plugins: [
[
'component',

View File

@ -121,6 +121,7 @@ function checkJWTToken(res, response) {
});
store.dispatch('logOut').then(() => {
router.push('/login');
location.reload();
});
return false;
}

View File

@ -21,4 +21,4 @@ new Vue({
router,
store,
render: h => h(App),
}).$mount('#app')
}).$mount('#app');