mounted(){
//监听注册
history.pushState(null, null, document.URL);
window.addEventListener('popstate', this.popstate,false)
},
//监听销毁
beforeDestroy() {
window.removeEventListener('popstate', this.popstate())
},
methods:{
//监听处理
popstate(){
history.pushState(null, null, document.URL);
},
}