mounted() {// 禁用浏览器返回键history.pushState(null, null, document.URL);window.addEventListener('popstate', this.disableBrowserBack)
},
destroyed() {// 清除popstate事件 否则会影响到其他页面window.removeEventListener("popstate", this.disableBrowserBack, false)
},
methods: {disableBrowserBack() {history.pushState(null, null, document.URL);}
}