0
点赞
收藏
分享

微信扫一扫

【Java知识】Java性能测试工具JMeter

小龟老师 2024-11-18 阅读 9

<script setup>
    import {
        onMounted,
        ref
    } from 'vue';
    let url = ref('');

    onMounted(() => {
        const windowInfo = wx.getWindowInfo();
        let safe_left = 0; //屏幕左边安全距离
        let safe_bottom = 0; //屏幕底部安全距离
        safe_left = ((windowInfo.safeArea.left / windowInfo.screenWidth) * 750);
        safe_bottom = (6 + (windowInfo.screenHeight - windowInfo.safeArea.bottom));
        url.value = 'https://saas.carned.cn/Carned-Car2/static/index.html?safe_left=' + safe_left +
            'px&safe_bottom=' + safe_bottom + 'px';
        console.log(url.value)

    })
</script>

举报

相关推荐

0 条评论