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
@@ -11,9 +11,6 @@
</template>
<script setup>
import sheep from '@/sheep';
const { safeAreaInsets } = sheep.$platform.device;
const props = defineProps({
content: {
type: String,
@@ -45,7 +45,7 @@
import { onPageScroll } from '@dcloudio/uni-app';
import sheep from '@/sheep';
import throttle from '@/sheep/helper/throttle.js';
import { showMenuTools, closeMenuTools } from '@/sheep/hooks/useModal';
import { showMenuTools } from '@/sheep/hooks/useModal';
const sys_statusBar = sheep.$platform.device.statusBarHeight;
const sys_navBar = sheep.$platform.navbar;
@@ -98,7 +98,8 @@
function getCommentCardNode() {
return new Promise((res, rej) => {
uni.createSelectorQuery()
uni
.createSelectorQuery()
.select('.detail-comment-selector')
.boundingClientRect((data) => {
if (data) {