修复:解决测试发现的问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user