forgeplus-react/src/forge/governanceIframe.jsx

20 lines
818 B
JavaScript

import React, { useEffect } from "react";
import { TPMIndexHOC } from "../modules/tpm/TPMIndexHOC";
function Sbom(props) {
const {current_user, mygetHelmetapi} = props;
const {admin, user_id} = current_user || {}
const {common} = mygetHelmetapi || {};
const {governance="http://172.16.6.252:10010"} = common || {};
useEffect(()=>{
document.title = '供应链监测预警平台';
}, [])
const url = `${governance}/governancePortal/governance/home?uid=${user_id}`
// const url = "http://localhost:3007/"
return <div className="" style={{border: "none"}}>
<iframe title={`sbomIframe`} src={url} id={`sbomIframe`} frameBorder="0" name={`sbomIframe`} width="100%" height={'auto'} style={{minHeight: '90vh'}}></iframe>
</div>
}
export default TPMIndexHOC(Sbom);