diff --git a/packages/uni-app-plus/src/helpers/uuid.ts b/packages/uni-app-plus/src/helpers/uuid.ts index 2330feeabfe34178b874075b14ea065f79cb0c01..4699cf64dbef2d728b11cabd8d22324527af335d 100644 --- a/packages/uni-app-plus/src/helpers/uuid.ts +++ b/packages/uni-app-plus/src/helpers/uuid.ts @@ -1,10 +1,6 @@ let deviceId: string -interface _PlusRuntime extends PlusRuntime { - getDCloudId: (...args: any[]) => string -} - export default function () { - deviceId = deviceId || (plus.runtime as _PlusRuntime).getDCloudId() + deviceId = deviceId || plus.device.uuid! return deviceId }