WeChat applet, compiling is fine, debugging on real machine is fine, even preview and demo version not work

1. Go to WeChat public platform settings-->Development settings, there is a "server domain name", set request legal domain name, socket legal domain name, uploadFile legal domain name, downloadFile legal domain name. Socket legal domain name is set to wss://+domain name

Socket legal domain name
  • wss: //

2. Clear the cache of the machine and change the phone.

Guess you like

Origin blog.csdn.net/orangapple/article/details/109080631