fix: 愈心魔方 onShow 清空原生导航标题(202608281)

配合 H5 首屏清 title,减少 web-view 加载时黑色「愈心谷」闪现。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-25 04:09:13 +08:00
co-authored by Cursor
parent d1f3f79ca5
commit a14285d77b
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -23,8 +23,21 @@
<script setup> <script setup>
import { computed } from 'vue' import { computed } from 'vue'
import { onShow } from '@dcloudio/uni-app'
import { YXG_H5_BASE, YXG_H5_VERSION, YXG_MP_LOGO_URL } from '@/util/yxgConfig.js' import { YXG_H5_BASE, YXG_H5_VERSION, YXG_MP_LOGO_URL } from '@/util/yxgConfig.js'
function clearNavTitle() {
// #ifdef MP-WEIXIN
uni.setNavigationBarTitle({ title: '\u200b' })
// #endif
}
onShow(() => {
clearNavTitle()
})
clearNavTitle()
function readWindow() { function readWindow() {
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
if (typeof wx !== 'undefined' && wx.getWindowInfo) { if (typeof wx !== 'undefined' && wx.getWindowInfo) {
+1 -1
View File
@@ -2,7 +2,7 @@
import { LOCAL_H5_HOST, USE_LOCAL_H5 } from './yxgConfig.local.js' import { LOCAL_H5_HOST, USE_LOCAL_H5 } from './yxgConfig.local.js'
const PROD_BASE = 'https://h5.yuxingu.com.cn/psy/' const PROD_BASE = 'https://h5.yuxingu.com.cn/psy/'
const PROD_VERSION = '202608280' const PROD_VERSION = '202608281'
/** 愈心魔方顶栏 logo(小程序包内 static,不请求外网) */ /** 愈心魔方顶栏 logo(小程序包内 static,不请求外网) */
export const YXG_MP_LOGO_URL = '/static/n-main/yxg-brand-logo.png' export const YXG_MP_LOGO_URL = '/static/n-main/yxg-brand-logo.png'