diff --git a/components/tab-bar/release.vue b/components/tab-bar/release.vue index 006afff..d42e8df 100644 --- a/components/tab-bar/release.vue +++ b/components/tab-bar/release.vue @@ -235,6 +235,7 @@ import { getIeProfile } from '@/common/ieApi.js' import { ensureIeVerifiedBeforeAction } from '@/common/ieRealNameAuth.js' import { requireLoginToPage } from '@/utils/authRedirect.js' + import { suppressNextShareRedirect, consumeShareRedirectSuppression } from '@/utils/sharePath.js' const CHANNELS = [ { tone: 'wall', name: '校园墙', desc: '新鲜事', icon: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/f3b050e7f6d74bb9adca54de0bf3fc17.png' }, @@ -766,7 +767,14 @@ previewImages(item, index) { const urls = this.getImages(item) if (!urls.length) return - uni.previewImage({ urls, current: urls[index] || urls[0] }) + suppressNextShareRedirect() + uni.previewImage({ + urls, + current: urls[index] || urls[0], + fail: () => { + consumeShareRedirectSuppression() + } + }) }, goDetail(item) { if (!this.requirePageLogin()) return