提交 031b001f 编写于 作者: D DCloud_LXH 提交者: qiang

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

上级 ef45437d
......@@ -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.
先完成此消息的编辑!
想要评论请 注册