提交 ad466151 编写于 作者: D DCloud_LXH

fix(app): deviceId is used plus module

上级 ce9272d6
let deviceId: string
export default function () {
deviceId = deviceId || plus.device.uuid!
return deviceId
}
import { defineAsyncApi, defineSyncApi, getLocale } from '@dcloudio/uni-api'
import deviceId from '../../../helpers/uuid'
import { extend, isString } from '@vue/shared'
import { getWindowInfo } from './getWindowInfo'
import { sortObject } from '@dcloudio/uni-shared'
......@@ -29,6 +28,7 @@ export const getDeviceInfo = defineSyncApi<typeof uni.getDeviceInfo>(
osVersion,
deviceOrientation,
deviceType,
deviceId,
} = systemInfo
const brand = deviceBrand.toLowerCase()
......@@ -39,7 +39,7 @@ export const getDeviceInfo = defineSyncApi<typeof uni.getDeviceInfo>(
deviceBrand: brand,
deviceModel,
devicePixelRatio: plus.screen.scale!,
deviceId: deviceId(),
deviceId,
deviceOrientation,
deviceType,
model: deviceModel,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册