From 6a99c797f7700eed54a91caf49c03f70b93e1f69 Mon Sep 17 00:00:00 2001 From: zhongnan Date: Wed, 16 Dec 2020 15:07:25 +0800 Subject: [PATCH] fix(safe-area): adapt iphone12 --- packages/mixins/safe-area.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mixins/safe-area.ts b/packages/mixins/safe-area.ts index 34858f96..ac63e923 100644 --- a/packages/mixins/safe-area.ts +++ b/packages/mixins/safe-area.ts @@ -8,7 +8,7 @@ function getSafeArea() { wx.getSystemInfo({ success: ({ model, statusBarHeight }) => { const deviceType = model.replace(/\s/g, '-'); - const iphoneNew = /iphone-x|iPhone11|iPhone12/i.test(deviceType); + const iphoneNew = /iphone-x|iPhone11|iPhone12|iPhone13/i.test(deviceType); cache = { isIPhoneX: iphoneNew,