🦀️ fix: 修复不刷新bug

This commit is contained in:
wangsongsole 2024-02-04 17:48:53 +08:00
parent 1be901f170
commit 2486e4be99
2 changed files with 9 additions and 1 deletions

View File

@ -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';
},
/*跳转详情*/

View File

@ -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: {