From c6530adaafebfc3c76671b51645ae4282082045b Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Wed, 8 Jun 2022 16:21:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(app):=20weex=20module=20plus=20=E5=9C=A8?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=A8=A1=E5=BC=8F=E4=B8=8B=E5=BE=97=E5=88=B0?= =?UTF-8?q?=E5=BA=8F=E5=88=97=E5=8C=96=E7=9A=84=20json=20question/146611?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/app-plus/service/api/device/system.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/platforms/app-plus/service/api/device/system.js b/src/platforms/app-plus/service/api/device/system.js index 551c8d434..34cc7e327 100644 --- a/src/platforms/app-plus/service/api/device/system.js +++ b/src/platforms/app-plus/service/api/device/system.js @@ -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 () { -- GitLab