增加API检测域名

This commit is contained in:
2025-08-10 12:52:58 +08:00
parent 194bb77793
commit bb48392da4
2 changed files with 26 additions and 1 deletions

View File

@@ -53,7 +53,6 @@ function getWx(): WeChat | undefined {
}
function loadWxSdk(): Promise<void> {
console.log('loadWxSdk')
if (typeof window === 'undefined') return Promise.resolve()
if (getWx()) return Promise.resolve()
return new Promise((resolve, reject) => {