🦀️ fix: 修复不刷新bug
This commit is contained in:
parent
1be901f170
commit
2486e4be99
|
@ -134,6 +134,10 @@
|
|||
this.goodsCount = localStorage.getItem('goodsCount');
|
||||
this.scrollTop =
|
||||
document.documentElement.scrollTop || document.body.scrollTop;
|
||||
|
||||
window.addEventListener('pageshow', () => {
|
||||
!this.loadShowHeight && this.getOrderList();
|
||||
});
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
@ -182,7 +186,7 @@
|
|||
/* 查看卡密 */
|
||||
lookCard (item) {
|
||||
sessionStorage.setItem("orderNumber", item.order_number);
|
||||
window.location.href = './orderDetails/cardOrder.html';
|
||||
window.location.href = '../orderDetails/cardOrder.html';
|
||||
},
|
||||
|
||||
/*跳转详情*/
|
||||
|
|
|
@ -119,6 +119,10 @@
|
|||
this.goodsCount = Number(sessionStorage.getItem("goodsCount"));
|
||||
this.scrollTop =
|
||||
document.documentElement.scrollTop || document.body.scrollTop;
|
||||
|
||||
window.addEventListener('pageshow', () => {
|
||||
!this.loadShowHeight && this.getOrderList();
|
||||
});
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue