迁移
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<!-- iOS 安装引导整页版:正常下载流程由 MobileLanding 页内弹层展示,本路由保留给 QA / 外链直达 -->
|
||||
<!-- ?guide=safari → 社媒内「复制到 Safari」引导;默认 → 三步轻量版安装引导 -->
|
||||
<IosSafariOpenGuide v-if="isSafariOpenGuide" :show="true" @close="goBack" />
|
||||
<IosInstallGuide v-else :show="true" @close="goBack" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import IosInstallGuide from '~/components/mobile/IosInstallGuide.vue'
|
||||
import IosSafariOpenGuide from '~/components/mobile/IosSafariOpenGuide.vue'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
|
||||
const isSafariOpenGuide = computed(() => {
|
||||
const g = String(route.query.guide || '').toLowerCase()
|
||||
return g === 'safari' || g === 'social'
|
||||
})
|
||||
|
||||
function goBack() {
|
||||
if (window.history.length > 1) {
|
||||
router.back()
|
||||
} else {
|
||||
router.push('/')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user