提交 a7bf282f 编写于 作者: 雪洛's avatar 雪洛

feat: 判断App安全网络是否开启

上级 6f537ed2
......@@ -140,6 +140,11 @@ function isEnableSecureNetwork (manifestJson, platform) {
manifestJson = getManifestJson()
}
const platformOptions = manifestJson[platform]
if (platform === 'app-plus') {
return !!(
platformOptions && platformOptions.modules && platformOptions.modules.SecureNetwork
)
}
return platformOptions && platformOptions.secureNetwork && platformOptions.secureNetwork.enable === true
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册