Merge pull request 'iframe cont.' (#771) from Eeeros/forgeplus-react:gitlink_ssr_head into gitlink_ssr_head

1
This commit is contained in:
Eeeros 2024-10-14 17:32:54 +08:00
commit 7c9b137004
3 changed files with 4 additions and 5 deletions

View File

@ -165,7 +165,7 @@ const Iframe = Loadable({
});
// 此处仅维护前端可能的一级路由,不用进行项目或者组织判断的字段。
const keyWord = ["explore", "settings", "setting", "mulan", "wiki", "issues", "setting", "trending", "code", "projects", "pulls", "mine", "login", "register", "email", "export", "nopage", "404", "403", "500", "501", "search", "organize", "login", "register", "resetPassword", "aboutus","educoder", "glcc","bindlogin", "softbot","zone"];
const keyWord = ["explore", "settings", "setting", "mulan", "wiki", "issues", "setting", "trending", "code", "projects", "pulls", "mine", "login", "register", "email", "export", "nopage", "404", "403", "500", "501", "search", "organize", "login", "register", "resetPassword", "aboutus","educoder", "glcc","bindlogin", "softbot","zone", "hiagent"];
class App extends Component {
constructor(props) {

View File

@ -16,8 +16,7 @@ const Iframe = (props) => {
function iframeLoad() {
let myIframe = document.getElementById("iframe");
myIframe.height = `${document.documentElement.clientHeight - 473 + 86}px`
// if (myIframe.contentWindow.location && myIfram e.contentWindow.location.href) {
// if (myIframe.contentWindow.location && myIframe.contentWindow.location.href) {
// window.location.href = 'http://118.145.132.196:3000/product/llm/llm-chat'
// //myIframe.contentWindow.location.href
// }
@ -26,9 +25,8 @@ const Iframe = (props) => {
return <iframe
id="iframe"
width="100%"
height="800px"
className="test-iframe"
src={ 'http://118.145.132.196:3000/product/llm/llm-chat' }
src={ 'https://testllm.trustie.net' }
onLoad={iframeLoad}
></iframe>
}

View File

@ -253,4 +253,5 @@ i.color-orange05:hover {
.test-iframe {
margin-top: -48px;
vertical-align:bottom;
height: 100vh;
}