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

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
C
Check Point Blog
V
V2EX
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
A
About on SuperTechFans
D
DataBreaches.Net
腾讯CDC
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
博客园_首页
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

皮皮赖'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)
    }
});

赞赏作者

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