Console报:Uncaught(in promise) undefined
Network报:gsdk.wasm.brotli?h=***** 404
答:
通常情况下,web应用的HTTP服务采用的IIS服务器时会出现该问题,需要在IIS中配置MIME类型:
<mimeMap fileExtension=”.wasm” mimeType=”application/wasm” />
<mimeMap fileExtension=”.mem” mimeType=”text/plain” />
<mimeMap fileExtension=”.brotli” mimeType=“application/octet-stream”
<mimeMap fileExtension=”.json” mimeType=”application/json” />