reactor:platform 的获取,从 getSystemInfoSync 迁移到 getAppBaseInfo

This commit is contained in:
YunaiV
2025-04-29 19:58:27 +08:00
parent 90e22374ee
commit 04bb5e65d3
6 changed files with 6 additions and 9 deletions
+1 -3
View File
@@ -234,9 +234,7 @@ function gotoAppPermissionSetting() {
const permission = {
get isIOS() {
return typeof isIOS === 'boolean'
? isIOS
: (isIOS = uni.getSystemInfoSync().platform === 'ios');
return typeof isIOS === 'boolean' ? isIOS : (isIOS = uni.getDeviceInfo().platform === 'ios');
},
requestIOS: requestIOS,
requestAndroid: requestAndroid,