Commit dbdfc36c authored by JinPeng's avatar JinPeng

[Fix-264][web]Fix the bug that the metadata details cannot be refreshed when...

[Fix-264][web]Fix the bug that the metadata details cannot be refreshed when you right-click to switch
parent 953a6b03
...@@ -63,7 +63,7 @@ const DTable = (props: any) => { ...@@ -63,7 +63,7 @@ const DTable = (props: any) => {
if(dataSource&&dataSource.url){ if(dataSource&&dataSource.url){
refreshData(); refreshData();
} }
}, []); }, [dataSource]);
return ( return (
<ProTable <ProTable
......
...@@ -22,7 +22,7 @@ const Generation = (props: any) => { ...@@ -22,7 +22,7 @@ const Generation = (props: any) => {
useEffect(() => { useEffect(() => {
getSqlGeneration(); getSqlGeneration();
}, []); }, [dbId,table,schema]);
return (<> return (<>
<Paragraph> <Paragraph>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment