setDeviceOrientation切换横竖屏后的UI适配问题
[图片] 调用完这个方法之后,横屏是切换了,但是UI适配很奇葩 wx['setDeviceOrientation']({
value: dir === "V" ? "portrait" : "landscape",
success: (res) => {
console.log("setDeviceOrientation", res);
},
fail: (err) => {
console.log("setDeviceOrientation fail", err);
this.is_rotate_v2 = false;
}
});