feat: 商品、订单、库存列表页增加onShow刷新数据
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-03-27 15:55:26 +00:00
parent 161a5236e4
commit 494b0f195d
3 changed files with 15 additions and 0 deletions

View File

@@ -125,6 +125,11 @@ export default {
this.status = null
this.loadOrders()
},
onShow() {
// 每次进入页面都刷新数据
this.page = 1
this.loadOrders()
},
onReachBottom() {
if (this.hasMore && !this.loading) {
this.page++