uniapp compilation applet preview mobile phone open blank problem solution

1:微信开发者工具(详情-本地设置-勾选上传时进行代码保护)
insert image description here
如果勾选了还是不行的话,在按照下面的步骤进行操作:
1:查看微信开发者工具版本,可能是版本问题,建议下载稳定版本,下载链接:https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
insert image description here
下载完uniapp重新编译(可能会有以下报错)
insert image description here
解决办法:
下载安装完需要配置Hbuilder工具-> 设置 -> 运行配置 -> 找到微信开发者工具路径配置填写你工具的安装路径
insert image description here
2:打开微信开发者工具找到设置 -> 安全设置 -> 服务端口打开 关闭微信开发者工具
在Hbuilder中 Ctrl + R运行到微信开发者工具完美打开了

Guess you like

Origin blog.csdn.net/qq_32184753/article/details/119596645