校验在线的js改成外部的

This commit is contained in:
xiaoqi.cxq 2022-11-17 20:19:00 +08:00
parent 4e9acad585
commit 31bec53520

View File

@ -69,7 +69,7 @@ export default {
await new Promise((resolve, reject) => {
script.onload = resolve;
script.onerror = reject;
script.src = `/empty.js?${Date.now()}`;
script.src = `https://res.wx.qq.com/open/js/jweixin-1.2.0.js?${Date.now()}`;
try {
document.head.appendChild(script); // This can fail with bad network
timeout = setTimeout(reject, networkTimeout);