diff --git a/src/platforms/app-plus/service/api/device/system.js b/src/platforms/app-plus/service/api/device/system.js index 551c8d4340219c35bfc11a9145c50cf6933c6425..34cc7e327d25cd4ee2ccad9835287fc5d3330709 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 () {