From c78ef70752f7ba02d57b0fd1ff5173629863febb Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Fri, 27 May 2022 16:04:10 +0800 Subject: [PATCH] fix(mp): model may be undefined (fixed #3560) --- .../uni-mp-core/src/api/protocols/enhanceSystemInfo.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/uni-mp-core/src/api/protocols/enhanceSystemInfo.ts b/packages/uni-mp-core/src/api/protocols/enhanceSystemInfo.ts index e34bf069a..44dbc0b15 100644 --- a/packages/uni-mp-core/src/api/protocols/enhanceSystemInfo.ts +++ b/packages/uni-mp-core/src/api/protocols/enhanceSystemInfo.ts @@ -49,10 +49,10 @@ export function populateParameters( toRes: UniApp.GetSystemInfoResult ) { const { - brand, - model, - system, - language, + brand = '', + model = '', + system = '', + language = '', theme, version, hostName, -- GitLab