handleCommand(command) { //触发事件
if (command === "back") {
this.$router.push({
path: "***", //跳转的路径
});
window.localStorage.clear(); //清除所有key
// 退出后禁止返回上一页
history.pushState(null, null, document.URL);
window.addEventListener(
"popstate",
function (e) {
history.pushState(null, null, document.URL);
},
false
);
}
},