提交 c6530ada 编写于 作者: D DCloud_LXH

fix(app): weex module plus 在调试模式下得到序列化的 json question/146611

上级 82aa714a
......@@ -10,6 +10,11 @@ function weexGetSystemInfoSync () {
if (!_initSystemInfo) return
const { getSystemInfoSync } = weex.requireModule('plus')
systemInfo = getSystemInfoSync()
if (typeof systemInfo === 'string') {
try {
systemInfo = JSON.parse(systemInfo)
} catch (error) {}
}
}
export function getDeviceInfo () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册