提交 0f0bcbfc 编写于 作者: Q qiang

fix(App): uuid

上级 bf4adce7
let uuid
export default function () {
uuid = uuid || plus.runtime.getDCloudId()
return uuid
}
...@@ -11,6 +11,8 @@ import tabBar from '../../framework/tab-bar' ...@@ -11,6 +11,8 @@ import tabBar from '../../framework/tab-bar'
import { getStatusbarHeight } from 'uni-platform/helpers/status-bar' import { getStatusbarHeight } from 'uni-platform/helpers/status-bar'
import uuid from 'uni-platform/helpers/uuid'
export function getSystemInfoSync () { export function getSystemInfoSync () {
return callApiSync(getSystemInfo, Object.create(null), 'getSystemInfo', 'getSystemInfoSync') return callApiSync(getSystemInfo, Object.create(null), 'getSystemInfo', 'getSystemInfoSync')
} }
...@@ -98,6 +100,6 @@ export function getSystemInfo () { ...@@ -98,6 +100,6 @@ export function getSystemInfo () {
bottom: safeAreaInsets.bottom, bottom: safeAreaInsets.bottom,
left: safeAreaInsets.left left: safeAreaInsets.left
}, },
uuid: plus.runtime.getDCloudId() uuid: uuid()
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册