fix: avoid duplicate PDA warehouse profile requests

This commit is contained in:
2026-09-07 19:27:18 +08:00
parent 449b5d2e99
commit de70382c08
2 changed files with 10 additions and 1 deletions
+5 -1
View File
@@ -57,7 +57,11 @@
return '晚上好'
}
},
onShow() { if (!requireSession()) return; this.user = session.currentUser; this.loadWarehouseProfile() },
onShow() {
if (!requireSession()) return
this.user = session.currentUser
if (!this.user?.warehouseCode || !this.user?.warehouseName) this.loadWarehouseProfile()
},
onBackPress() {
if (!this.menuOpen) return false
this.$refs.portalHeader.closeMenu()