提交 6d85aa0c 编写于 作者: inkwalk's avatar inkwalk

fixed: mp platform MediaQueryObserver no option

上级 2ecd3e3f
......@@ -8,7 +8,7 @@ export default function createMediaQueryObserver () {
const orientation = windowWidth < windowHeight ? 'portrait' : 'landscape'
mediaQueryObserver.observe = (options, callback) => {
let matches = false
let matches = true
for (const item in options) {
const itemValue = item === 'orientation' ? options[item] : Number(options[item])
if (options[item] !== '') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册