退出登录之后,禁止使用浏览器回退功能
//清空token并跳转
localStorage.clear()
sessionStorage.clear()
this.$router.push('/login')
history.pushState(null, null, document.URL);
window.addEventListener("popstate",function(e) {
history.pushState(null, null, document.URL);
}, false);