@@ -35,7 +35,7 @@
|
||||
/>
|
||||
<view class="hero-image-shade"></view>
|
||||
<button
|
||||
v-if="!shouldUseHostNavigation"
|
||||
v-if="shouldShowDetailBack"
|
||||
class="hero-back"
|
||||
aria-label="返回上级"
|
||||
@tap.stop="handleBack"
|
||||
@@ -253,6 +253,9 @@ const detailTextLoadedByLanguage = ref<Record<AudioLanguage, boolean>>({
|
||||
'en-US': false
|
||||
})
|
||||
const shouldUseHostNavigation = computed(() => isEmbeddedInWechatMiniProgram())
|
||||
const shouldShowDetailBack = computed(() => (
|
||||
!shouldUseHostNavigation.value || detailEntryRequest.value?.returnToGuideStopList === true
|
||||
))
|
||||
|
||||
const isAudioLanguage = (value: unknown): value is AudioLanguage => (
|
||||
value === 'zh-CN' || value === 'yue-HK' || value === 'en-US'
|
||||
|
||||
Reference in New Issue
Block a user