调用完这个方法之后,横屏是切换了,但是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;
}
});
同样遇到这个问题,官方还没解决?