// 改变历史记录,返回上一页是订单列表页面。
setHistory(){
if(window.history.replaceState && window.history.pushState){
try{
window.onpopstate = function(event) {
if(event.state && event.state.orderList){
location.reload(true);
}
}
const url = document.URL;
window.history.replaceState({orderList: true}, '', `${app.getProjectPath()}/order/index.html`);
window.history.pushState(null, '', url);
} catch(e){
console.error(e)
}
}
},