14 changed files with 61 additions and 240 deletions
-
36frontend/src/App.jsx
-
2frontend/src/pages/Admin/Users/UserRow/index.jsx
-
33frontend/src/pages/DataAnalysis/index.jsx
-
14frontend/src/pages/GeneralView/index.jsx
-
6frontend/src/pages/Home/home.css
-
10frontend/src/pages/Home/index.jsx
-
30frontend/src/pages/Industry/index.jsx
-
30frontend/src/pages/Report/index.jsx
-
15frontend/src/pages/ReportGeneration/index.jsx
-
30frontend/src/pages/Talents/index.jsx
-
14frontend/src/pages/Tendency/index.jsx
-
30frontend/src/pages/TrendPrediction/index.jsx
-
30frontend/src/pages/Yuqingfenxi/index.jsx
-
21frontend/src/utils/paths.js
@ -1,30 +0,0 @@ |
|||
import React, { useEffect, useState, useRef } from 'react'; |
|||
|
|||
function Industry() { |
|||
const iframeRef = useRef(null); |
|||
|
|||
useEffect(() => { |
|||
if (iframeRef.current) { |
|||
iframeRef.current.contentWindow.addEventListener('message', (event) => { |
|||
console.log(11111, event.data); |
|||
}); |
|||
} |
|||
|
|||
return () => { |
|||
if (iframeRef.current) { |
|||
iframeRef.current.contentWindow.removeEventListener('message', (event) => { |
|||
console.log('Received message:', event.data); |
|||
}); |
|||
} |
|||
}; |
|||
}, []); // 空依赖数组确保只运行一次清理操作 |
|||
|
|||
return ( |
|||
<div> |
|||
<iframe ref={iframeRef} src="http://ds1.chenhaitech.com/chat/qcAjlNGBDeqI168Z" className='w-[100%] h-screen'/>; |
|||
</div> |
|||
) |
|||
|
|||
} |
|||
|
|||
export default Industry; |
|||
@ -1,30 +0,0 @@ |
|||
import React, { useEffect, useState, useRef } from 'react'; |
|||
|
|||
function Report() { |
|||
const iframeRef = useRef(null); |
|||
|
|||
useEffect(() => { |
|||
if (iframeRef.current) { |
|||
iframeRef.current.contentWindow.addEventListener('message', (event) => { |
|||
console.log(11111, event.data); |
|||
}); |
|||
} |
|||
|
|||
return () => { |
|||
if (iframeRef.current) { |
|||
iframeRef.current.contentWindow.removeEventListener('message', (event) => { |
|||
console.log('Received message:', event.data); |
|||
}); |
|||
} |
|||
}; |
|||
}, []); // 空依赖数组确保只运行一次清理操作 |
|||
|
|||
return ( |
|||
<div> |
|||
<iframe ref={iframeRef} src="http://ds1.chenhaitech.com/chat/9miqAsKQCQjCOATH" className='w-[100%] h-screen'/>; |
|||
</div> |
|||
) |
|||
|
|||
} |
|||
|
|||
export default Report; |
|||
@ -1,30 +0,0 @@ |
|||
import React, { useEffect, useState, useRef } from 'react'; |
|||
|
|||
function Talents() { |
|||
const iframeRef = useRef(null); |
|||
|
|||
useEffect(() => { |
|||
if (iframeRef.current) { |
|||
iframeRef.current.contentWindow.addEventListener('message', (event) => { |
|||
console.log(11111, event.data); |
|||
}); |
|||
} |
|||
|
|||
return () => { |
|||
if (iframeRef.current) { |
|||
iframeRef.current.contentWindow.removeEventListener('message', (event) => { |
|||
console.log('Received message:', event.data); |
|||
}); |
|||
} |
|||
}; |
|||
}, []); // 空依赖数组确保只运行一次清理操作 |
|||
|
|||
return ( |
|||
<div> |
|||
<iframe ref={iframeRef} src="http://ds1.chenhaitech.com/chat/3hcCJ8mzo1s1v6yy" className='w-[100%] h-screen'/>; |
|||
</div> |
|||
) |
|||
|
|||
} |
|||
|
|||
export default Talents; |
|||
@ -1,30 +0,0 @@ |
|||
import React, { useEffect, useState, useRef } from 'react'; |
|||
|
|||
function TrendPrediction() { |
|||
const iframeRef = useRef(null); |
|||
|
|||
useEffect(() => { |
|||
if (iframeRef.current) { |
|||
iframeRef.current.contentWindow.addEventListener('message', (event) => { |
|||
console.log(11111, event.data); |
|||
}); |
|||
} |
|||
|
|||
return () => { |
|||
if (iframeRef.current) { |
|||
iframeRef.current.contentWindow.removeEventListener('message', (event) => { |
|||
console.log('Received message:', event.data); |
|||
}); |
|||
} |
|||
}; |
|||
}, []); // 空依赖数组确保只运行一次清理操作 |
|||
|
|||
return ( |
|||
<div> |
|||
<iframe ref={iframeRef} src="http://ds1.chenhaitech.com/chat/TBbQM3inivFUO1yT" className='w-[100%] h-screen'/>; |
|||
</div> |
|||
) |
|||
|
|||
} |
|||
|
|||
export default TrendPrediction; |
|||
@ -1,30 +0,0 @@ |
|||
import React, { useEffect, useState, useRef } from 'react'; |
|||
|
|||
function Yuqingfenxi() { |
|||
const iframeRef = useRef(null); |
|||
|
|||
useEffect(() => { |
|||
if (iframeRef.current) { |
|||
iframeRef.current.contentWindow.addEventListener('message', (event) => { |
|||
console.log(11111, event.data); |
|||
}); |
|||
} |
|||
|
|||
return () => { |
|||
if (iframeRef.current) { |
|||
iframeRef.current.contentWindow.removeEventListener('message', (event) => { |
|||
console.log('Received message:', event.data); |
|||
}); |
|||
} |
|||
}; |
|||
}, []); // 空依赖数组确保只运行一次清理操作 |
|||
|
|||
return ( |
|||
<div> |
|||
<iframe ref={iframeRef} src="http://ds1.chenhaitech.com/chat/8HbpWwY8Y6TtGD0v" className='w-[100%] h-screen'/>; |
|||
</div> |
|||
) |
|||
|
|||
} |
|||
|
|||
export default Yuqingfenxi; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue