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

Merge branch 'dev' of https://github.com/dcloudio/uni-app into dev

......@@ -34,7 +34,7 @@ export function getNetworkType () {
if (connection) {
networkType = connection.type
if (networkType === 'cellular') {
networkType = connection.effectiveType.replace('slow-', '')
networkType = connection.effectiveType && connection.effectiveType.replace('slow-', '')
} else if (!['none', 'wifi'].includes(networkType)) {
networkType = 'unknown'
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册