惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
I
InfoQ
C
Check Point Blog
IT之家
IT之家
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
Last Week in AI
Last Week in AI
GbyAI
GbyAI
P
Proofpoint News Feed
量子位
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
B
Blog
T
The Blog of Author Tim Ferriss
H
Help Net Security
云风的 BLOG
云风的 BLOG

皮皮赖's Blog

Script @php think service:discover handling the post-autoload-dump event returned with error code 255 Centos7 网卡型号 网卡硬件型号 网卡芯片型号支持列表 - 皮皮赖's Blog Javascript导出数据至Excel JS导出数据至Excel - 皮皮赖's Blog PHP导出数据至Excel PHPExcel库使用方法 例子 示例 - 皮皮赖's Blog golang 实现 SD-WAN IWAN 例子 简单例子 示例 宝塔面板邮局管理器Postfix无法启动,重装后不能正常运行Postfix修复 - 皮皮赖's Blog idea goland phpstorm pycharm IntelliJ 打开项目后,只显示文件,项目中的目录不显示 《掌上 WeGame》宣布退市,9月8日正式停运 - 皮皮赖's Blog 常见内网IP段,不跟公网冲突的内网IP段有那些? - 皮皮赖's Blog
uniapp IOS15、16 uni.scanCode 扫码后页面跳转卡死 - 皮皮赖...
博主: Reaper · 2023-06-21 · via 皮皮赖's Blog

bug描述:

版本3.6.14 ios15、16 uni.scanCode() 扫码后会卡死,只能杀掉重新进入;安卓是正常的
版本3.6.13 之前IOS是好使的 更新之后就卡死了

解决办法:

使用nextTick+延时500毫秒可以解决,测试发现只使用nextTick也可以解决,不过为了保险,加个双重吧

uni.scanCode({
    scanType: ['barCode'],
    success: async (res) => {
        this.formData0.tusn = res.result;
        await this.$nextTick();
        setTimeout(() => {
            this.getTusnInfo();
        },800)
    }
});

赞赏作者

您的赞赏是对我最大的支持。