Sfoglia il codice sorgente

添加structureClone的polyfill以兼容支付宝浏览器

任一存 2 anni fa
parent
commit
c06375bb77
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/sdk/QJKanKan/modules/hotspot.js

+ 5 - 0
src/sdk/QJKanKan/modules/hotspot.js

@@ -4,6 +4,11 @@
  * 
  *  */
 // import config from '../config'
+if (!window.structuredClone) {
+  window.structuredClone = function(origin) {
+    return JSON.parse(JSON.stringify(origin))
+  }
+}
 
 const initState = {
     id: "",