提交 a1ee8f2e 编写于 作者: 郭胜强

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

...@@ -58,6 +58,8 @@ ...@@ -58,6 +58,8 @@
"uni": true, "uni": true,
"Vue": true, "Vue": true,
"wx": true, "wx": true,
"my": true,
"swan": true,
"__uniConfig": true, "__uniConfig": true,
"__uniRoutes": true, "__uniRoutes": true,
"UniViewJSBridge": true, "UniViewJSBridge": true,
......
export function setStorageSync (key, data) {
return my.setStorageSync({
key,
data
})
}
export function getStorageSync (key) {
const result = my.getStorageSync({
key
})
// 不知道会不会出现 success 为 false 情况,暂时这样处理下。
if (result.success) {
return result.data || ''
} else {
return ''
}
}
export function removeStorageSync (key) {
return my.removeStorageSync({
key
})
}
...@@ -222,31 +222,12 @@ const protocols = { // 需要做转换的 API 列表 ...@@ -222,31 +222,12 @@ const protocols = { // 需要做转换的 API 列表
type: false, type: false,
altitude: false altitude: false
} }
// returnValue: {
// speed: false,
// altitude: false,
// verticalAccuracy: false
// }
}, },
openLocation: { openLocation: {
args: { args: {
// TODO address 参数在阿里上是必传的 // TODO address 参数在阿里上是必传的
} }
}, },
getSystemInfo: {
// returnValue: {
// brand: false,
// statusBarHeight: false,
// SDKVersion: false
// }
},
getSystemInfoSync: {
// returnValue: {
// brand: false,
// statusBarHeight: false,
// SDKVersion: false
// }
},
getNetworkType: { getNetworkType: {
returnValue: _handleNetworkInfo returnValue: _handleNetworkInfo
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册