iframe cont.
This commit is contained in:
parent
1db5db8a85
commit
9d21c2fd83
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -252,4 +252,5 @@ i.color-orange05:hover {
|
|||
.test-iframe {
|
||||
margin-top: -48px;
|
||||
vertical-align:bottom;
|
||||
height: 100vh;
|
||||
}
|
||||
Loading…
Reference in New Issue