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
@@ -82,10 +82,9 @@
<script>
import sheep from '@/sheep';
const { safeAreaInsets } = sheep.$platform.device;
let platform = 'other';
// #ifdef APP-NVUE
platform = uni.getSystemInfoSync().platform;
platform = uni.getDeviceInfo().platform;
// #endif
/**
@@ -37,7 +37,7 @@
<script>
let platform
setTimeout(() => {
platform = uni.getSystemInfoSync().platform
platform = uni.getDeviceInfo().platform
}, 16)
import {