@@ -15,6 +15,7 @@
"dependencies": {
"@babel/polyfill": "^7.12.1",
"@floating-ui/dom": "^1.0.4",
+ "@ungap/structured-clone": "^1.3.0",
"axios": "^0.27.2",
"clipboard": "^2.0.11",
"consola": "^3.1.0",
@@ -55,4 +56,4 @@
"browser": {
"process": false
}
-}
+}
@@ -4,7 +4,8 @@
*
* */
// import config from '../config'
-
+// structuredClone
+import structuredClone from '@ungap/structured-clone';
console.log("支持-structuredClone", "structuredClone" in globalThis);
const initState = {