服了,版本不稳定还推送,整个工具白屏,电脑重启都不能恢复
开发者工具打开白屏?更新了最新版本后,打开以前的项目,整个工具都是白屏的,模拟器,编辑器,调试器都出不来。 [图片] [图片]
03-19https://developers.weixin.qq.com/s/qRdeo0mm8Y29 这是一个横屏的签名板功能,在初始化将系统横屏后,重新获取屏幕的宽高并填充canvas,此时resize方法中已经获取到了横屏的宽高,但是调用getSystemInfo后依然是竖屏的宽高。 另外最近有用户反馈安卓机型使用此代码签名会断触,以前没有该问题,是否最近有什么更新导致?
getSystemInfo无法获取横屏后的宽高?lifetimes: { ready() { wx.setPageOrientation({ orientation: "landscape", complete: function(res) { console.log("横屏回调 -- ", res); } }); }, }, pageLifetimes: { resize(res) { console.debug("resize", res.size.windowWidth , res.size.windowHeight) // 判断是否横屏成功 if (res.size.windowWidth > res.size.windowHeight) { this.getSystemInfo(); this.createCanvas(); } } }, getSystemInfo() { console.debug("getSystemInfo") let that = this; wx.getSystemInfo({ success(res) { // 此时返回的仍然是竖屏的宽高,真机没有这个问题 console.debug(res) that.setData({ pr: res.pixelRatio, width: res.windowWidth, height: res.windowHeight - 75, }); } }); },
2025-07-29倒霉的缓存,把旧的小程序删除就好了
小程序体验版request:fail url not in domain list?已经在request合法域名中设置了,在微信开发者工具中正常请求没问题,使用手机扫描体验版时候就出现request:fail url not in domain list
2021-03-19