fix: 愈心魔方 onShow 清空原生导航标题(202608281)
配合 H5 首屏清 title,减少 web-view 加载时黑色「愈心谷」闪现。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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
@@ -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'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user