nili 8 months ago
parent
commit
c57466840e
  1. 6
      build/asset-manifest.json
  2. 2
      build/index.html
  3. 1
      build/static/js/main.0cf4b09e.js.map
  4. 6
      build/static/js/main.f3d3e83a.js
  5. 0
      build/static/js/main.f3d3e83a.js.LICENSE.txt
  6. 1
      build/static/js/main.f3d3e83a.js.map
  7. 12
      src/page/UserPage.tsx

6
build/asset-manifest.json

@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.31676e70.css",
"main.js": "/static/js/main.0cf4b09e.js",
"main.js": "/static/js/main.f3d3e83a.js",
"static/js/453.1d641cba.chunk.js": "/static/js/453.1d641cba.chunk.js",
"index.html": "/index.html",
"main.31676e70.css.map": "/static/css/main.31676e70.css.map",
"main.0cf4b09e.js.map": "/static/js/main.0cf4b09e.js.map",
"main.f3d3e83a.js.map": "/static/js/main.f3d3e83a.js.map",
"453.1d641cba.chunk.js.map": "/static/js/453.1d641cba.chunk.js.map"
},
"entrypoints": [
"static/css/main.31676e70.css",
"static/js/main.0cf4b09e.js"
"static/js/main.f3d3e83a.js"
]
}

2
build/index.html

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>奇迹畅玩</title><script defer="defer" src="/static/js/main.0cf4b09e.js"></script><link href="/static/css/main.31676e70.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>奇迹畅玩</title><script defer="defer" src="/static/js/main.f3d3e83a.js"></script><link href="/static/css/main.31676e70.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

1
build/static/js/main.0cf4b09e.js.map

File diff suppressed because one or more lines are too long

6
build/static/js/main.0cf4b09e.js → build/static/js/main.f3d3e83a.js

File diff suppressed because one or more lines are too long

0
build/static/js/main.0cf4b09e.js.LICENSE.txt → build/static/js/main.f3d3e83a.js.LICENSE.txt

1
build/static/js/main.f3d3e83a.js.map

File diff suppressed because one or more lines are too long

12
src/page/UserPage.tsx

@ -16,7 +16,7 @@ import {
TeamOutlined,
} from "@ant-design/icons";
interface ParentWindow extends Window {
interface CocosBridge extends Window {
test: (...args: any[]) => void;
}
@ -72,13 +72,13 @@ const UserPage = () => {
prefix={<UnorderedListOutline />}
onClick={() => {
if (
window.parent &&
typeof (window.parent as ParentWindow).test === "function"
(window as any).CocosBridge &&
typeof (window as any).CocosBridge.test === "function"
) {
const code = (window.parent as ParentWindow).test();
Toast.show({ content: "访问成功,code:" + code });
const code = (window as any).CocosBridge.test();
alert("code:" + code);
} else {
Toast.show({ content: "无法访问 parent.test() 方法" });
alert("无法访问 CocosBridge.test() 方法");
}
}}
>

Loading…
Cancel
Save