From 7a071f16b07c9505ff015e49f94236077df89ba9 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Mon, 18 Jul 2022 18:17:41 +0800 Subject: [PATCH] chore(app): getAppAuthorizeSetting --- .../service/api/device/get-app-authorize-setting.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/platforms/app-plus/service/api/device/get-app-authorize-setting.js b/src/platforms/app-plus/service/api/device/get-app-authorize-setting.js index 37f15d8d4..3202edc10 100644 --- a/src/platforms/app-plus/service/api/device/get-app-authorize-setting.js +++ b/src/platforms/app-plus/service/api/device/get-app-authorize-setting.js @@ -5,5 +5,12 @@ export function getAppAuthorizeSetting () { if (typeof appAuthorizeSetting === 'string') { appAuthorizeSetting = JSON.parse(appAuthorizeSetting) } } catch (error) { } + for (const key in appAuthorizeSetting) { + if (Object.hasOwnProperty.call(appAuthorizeSetting, key)) { + const value = appAuthorizeSetting[key]; + if(value === 'undefined') appAuthorizeSetting[key] = undefined + } + } + return appAuthorizeSetting } -- GitLab