fix(h5): 修复小程序 WebView 内 logo 与备案号展示

Logo 改用 BASE_URL 路径并在 embed 模式始终显示顶部栏;备案号改为页面底部文档流,避免悬浮遮挡内容。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-25 01:04:18 +08:00
co-authored by Cursor
parent ebc2d3ad80
commit 635a83fe11
4 changed files with 17 additions and 21 deletions
+4 -7
View File
@@ -1,22 +1,19 @@
<template>
<div class="app-shell" :class="{ 'mp-embed': mpEmbed }">
<AppHeader v-if="!mpEmbed || showEmbedHeader" />
<router-view />
<div class="app-body">
<AppHeader />
<router-view />
</div>
<IcpFooter />
<TabBar v-if="!mpEmbed" />
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import AppHeader from './components/AppHeader.vue'
import IcpFooter from './components/IcpFooter.vue'
import TabBar from './components/TabBar.vue'
import { isMpEmbed } from './lib/mpEmbed'
const route = useRoute()
const mpEmbed = isMpEmbed()
/** Sub-pages in web-view: show back only; home hides duplicate chrome. */
const showEmbedHeader = computed(() => mpEmbed && route.path !== '/')
</script>