15 lines
367 B
Vue
15 lines
367 B
Vue
<script setup lang="ts">
|
|
import LandingBPc from './LandingBPc.vue'
|
|
import LandingBMobile from './LandingBMobile.vue'
|
|
|
|
// 仅按 UA 分流,不按宽度切换
|
|
const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
navigator.userAgent,
|
|
)
|
|
</script>
|
|
|
|
<template>
|
|
<LandingBMobile v-if="isMobile" />
|
|
<LandingBPc v-else />
|
|
</template>
|