|
@@ -53,11 +53,7 @@ export default {
|
|
|
logout() {
|
|
|
this.$store.dispatch('LogOut').then(() => {
|
|
|
this.$router.push('/login')
|
|
|
- setTimeout(()=>{
|
|
|
-
|
|
|
- location.reload(true) // 为了重新实例化vue-router对象 避免bug
|
|
|
- },500)
|
|
|
-
|
|
|
+ // 为了重新实例化vue-router对象 避免bug
|
|
|
// console.log(location.hostname+'/mall')
|
|
|
// location.href = location.hostname+'/mall'
|
|
|
})
|