未验证 提交 15dbace6 编写于 作者: R RotPublic 提交者: GitHub

Compatible with the original static image mode

上级 5b9dacfc
...@@ -186,11 +186,6 @@ const Graph: FunctionComponent = () => { ...@@ -186,11 +186,6 @@ const Graph: FunctionComponent = () => {
const [rendered, setRendered] = useState(false); const [rendered, setRendered] = useState(false);
const content = (runs: string) => {
return <div>{runs}</div>;
// return (<p>Content</p>)
};
const aside = useMemo(() => { const aside = useMemo(() => {
if (!rendered) { if (!rendered) {
return null; return null;
...@@ -318,6 +313,7 @@ const Graph: FunctionComponent = () => { ...@@ -318,6 +313,7 @@ const Graph: FunctionComponent = () => {
t, t,
bottom, bottom,
search, search,
runs,
searching, searching,
searchResult, searchResult,
selectedRuns, selectedRuns,
......
...@@ -117,7 +117,7 @@ const Graph: FunctionComponent = () => { ...@@ -117,7 +117,7 @@ const Graph: FunctionComponent = () => {
[setModelFile] [setModelFile]
); );
const {data, loading} = useRequest<BlobResponse>(files ? null : '/graph/graph'); const {data, loading} = useRequest<BlobResponse>(files ? null : '/graph/static_graph');
useEffect(() => { useEffect(() => {
if (data?.data?.size) { if (data?.data?.size) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册