修复:解决测试发现的问题

This commit is contained in:
2025-11-12 16:00:44 +08:00
parent 1da75a59f2
commit 1daa6367c9
29 changed files with 133 additions and 182 deletions

View File

@@ -51,4 +51,12 @@ export const getNavbarHeight2 = () => {
const totalHeight = statusBarHeight.value + navBarHeight
navbarHeight.value = totalHeight + 'px'
}
/**
* 获取屏幕刘海高度
*/
export const getNotchHeight = () => {
const systemInfo = uni.getSystemInfoSync()
return systemInfo.safeArea?.top || 0
}