Browse Source

登出跳转回登陆页面

master
陈裕财 4 years ago
parent
commit
576e3c8159
  1. 2
      src/views/layout/components/Navbar.vue

2
src/views/layout/components/Navbar.vue

@ -225,7 +225,7 @@ export default {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {
//location.reload()// In order to re-instantiate the vue-router object to avoid bugs //location.reload()// In order to re-instantiate the vue-router object to avoid bugs
//this.$router.replace({path:'/login'}) //this.$router.replace({path:'/login'})
location.replace('/');
location.replace('/'+process.env.CONTEXT+'/'+process.env.VERSION+'/');
}) })
}, },
showSelectShopMethod() { showSelectShopMethod() {

Loading…
Cancel
Save