华科uid传递

This commit is contained in:
谢思 2026-01-06 11:42:42 +08:00
parent 05dc88c94a
commit 2067e4b345
2 changed files with 4 additions and 3 deletions

View File

@ -1,14 +1,15 @@
import React, { useEffect } from "react";
function Sbom(props) {
const {mygetHelmetapi} = props;
const {mygetHelmetapi, current_user} = props;
const {common} = mygetHelmetapi || {};
const {governance="http://172.16.6.252:10010"} = common || {};
const {user_id} = current_user || {}
const { projectsId, owner } = props.match.params;
const str = projectsId.replace(/\./g, "_")
// const url = `http://localhost:3007/gagaga/accepts_1.3.8/sbom`
const url = `${governance}/governancePortal/sbom/${str}`
const url = `${governance}/governancePortal/sbom/${str}?uid=${user_id}`
// useEffect(() => {
// window.addEventListener("message", iframeHeight, false);

View File

@ -9,7 +9,7 @@ function Sbom(props) {
document.title = '供应链监测预警平台';
}, [])
const url = `${governance}/governancePortal/governance/home?token=${admin?"admin123": user_id}`
const url = `${governance}/governancePortal/governance/home?uid=${user_id}`
// const url = "http://localhost:3007/"
return <div className="" style={{border: "none"}}>