提交 27aa1983 编写于 作者: Q qiang

fix: 解决 Safari 浏览器报错的问题

上级 fd1ca3e0
...@@ -21,10 +21,10 @@ export default function getWindowOffset () { ...@@ -21,10 +21,10 @@ export default function getWindowOffset () {
} }
const app = getApp() const app = getApp()
if (app) { if (app) {
bottom = app.$children[0].showTabBar ? TABBAR_HEIGHT : 0 bottom = app.$children[0] && app.$children[0].showTabBar ? TABBAR_HEIGHT : 0
} }
return { return {
top, top,
bottom bottom
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册