Fix(店铺):[#1068]店铺查看资讯图片返回后,改为停留在点击图片前的位置,不要返回后就刷新页面

This commit is contained in:
lifizer
2024-04-07 16:08:23 +08:00
parent 67ba00b882
commit 4c14687217
2 changed files with 4 additions and 3 deletions
+2 -3
View File
@@ -504,10 +504,9 @@ export default {
if (!this.isLoad) {
return
}
if (this.inn.hasProduct > 0) {
this.fetchGoods()
if (uni.getStorageSync('hotelInfoPublish') === '1') {
this.fetchInnInfoList()
}
this.fetchInnInfoList()
this.fetchInnDetail()
},
methods: {
+2
View File
@@ -162,6 +162,8 @@
this.$dialog.toast({
mes: '发布成功!'
})
// 写入缓存,返回至商户主页时监听用于刷新资讯列表
uni.setStorageSync('hotelInfoPublish', '1')
setTimeout(() => {
this.$yrouter.back()
}, 3000)