From c958a8e3a2e844791660632676819c62ca230adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Mon, 27 Jun 2022 22:50:33 +0800 Subject: [PATCH] fix: read appId of undefined --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 47f4070..7f169d1 100644 --- a/src/index.js +++ b/src/index.js @@ -69,7 +69,7 @@ class UniID { if (!Array.isArray(originConfig)) { return originConfig } - return originConfig.find(item => item.dcloudAppid === this.clientInfo.appId) || originConfig.find(item => item.isDefaultConfig) + return originConfig.find(item => item.dcloudAppid === this._clientInfo.appId) || originConfig.find(item => item.isDefaultConfig) } _getPlatformConfig () { -- GitLab