提交 7a071f16 编写于 作者: D DCloud_LXH

chore(app): getAppAuthorizeSetting

上级 0ed36b2c
......@@ -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
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册