Fix:3532 【商城小程序】店铺主页—切换登录店铺返回,再次进入店铺主页时未固定到选择店铺
This commit is contained in:
@@ -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
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user