Fix:3532 【商城小程序】店铺主页—切换登录店铺返回,再次进入店铺主页时未固定到选择店铺

This commit is contained in:
linxi
2025-03-27 14:57:05 +08:00
parent 36914c10b0
commit a267868890
2 changed files with 2 additions and 1 deletions
@@ -34,6 +34,7 @@ export default {
queryHome(e) { queryHome(e) {
this.$nextTick(() => { this.$nextTick(() => {
this.$emit('enter', this.list[e]) this.$emit('enter', this.list[e])
uni.setStorageSync('homeId', this.list[e].id)
this.show = false this.show = false
}) })
}, },
+1 -1
View File
@@ -551,7 +551,7 @@ export default {
break break
} }
if (id) { if (id) {
this.id = id || null this.id = uni.getStorageSync('homeId') || id
this.partnerId = options.partnerId || null this.partnerId = options.partnerId || null
} else { } else {
let obj = uni.getEnterOptionsSync() let obj = uni.getEnterOptionsSync()