reactor:getSystemInfoSync =》 getWindowInfo,解决 device

This commit is contained in:
YunaiV
2025-04-29 20:38:50 +08:00
parent 9582d5944e
commit c95f621144
7 changed files with 16 additions and 22 deletions
@@ -64,7 +64,7 @@
</block>
</view>
</view>
<!-- 富文本 -->
<!-- #ifdef H5 || ((MP-WEIXIN || MP-QQ || APP-PLUS || MP-360) && VUE2) -->
<rich-text v-else-if="!n.c&&!handler.isInline(n.name, n.attrs.style)" :id="n.attrs.id" :style="n.f" :user-select="opts[4]" :nodes="[n]" />
@@ -125,7 +125,7 @@ export default {
return {
ctrl: {},
// #ifdef MP-WEIXIN
isiOS: uni.getSystemInfoSync().system.includes('iOS')
isiOS: uni.getDeviceInfo().system.includes('iOS')
// #endif
}
},
@@ -77,11 +77,13 @@ const config = {
}
const tagSelector={}
const {
windowWidth,
// #ifdef MP-WEIXIN
system
// #endif
} = uni.getSystemInfoSync()
} = uni.getDeviceInfo()
const {
windowWidth
} = uni.getWindowInfo()
const blankChar = makeMap(' ,\r,\n,\t,\f')
let idIndex = 0