<template>
<view>
<text @click="doShare" class="font-weight-bolder">横屏</text>
</view>
</template>
<script>
doShare(){
plus.screen.lockOrientation('landscape-primary');//横屏
},
</script>
这么写在非v3情况下ios可以横屏但是在v3云打包后无法横屏 安卓正常
<template>
<view>
<text @click="doShare" class="font-weight-bolder">横屏</text>
</view>
</template>
<script>
doShare(){
plus.screen.lockOrientation('landscape-primary');//横屏
},
</script>
这么写在非v3情况下ios可以横屏但是在v3云打包后无法横屏 安卓正常
0 个回复