Commit a3b1d59d by fanyj

Merge branch 'demo-2024' of ssh://132.232.112.242:7022/zcx/szse into demo-2024

parents 2ad30eca f2cac6ce
...@@ -30,4 +30,10 @@ ...@@ -30,4 +30,10 @@
To create a production bundle, use `npm run build` or `yarn build`. To create a production bundle, use `npm run build` or `yarn build`.
--> -->
</body> </body>
<style scoped>
#root{
height: 100%;
width: 100%;
}
</style>
</html> </html>
...@@ -236,7 +236,34 @@ export class App extends React.Component { ...@@ -236,7 +236,34 @@ export class App extends React.Component {
</AppContext.Provider> </AppContext.Provider>
); );
} }
if (message === 'showRelationContainer') {
console.log('hostParams1',hostParams);
return (
<AppContext.Provider value={{
env: hostParams?.env,
user: hostParams?.user,
setGlobalState,
onGlobalStateChange
}}>
<RelationContainer nodeParams={hostParams?.nodeParams} onChange={hostParams?.changeNode} dirs={hostParams?.dirs} resize={false}/>
</AppContext.Provider>
);
}
if (message === 'showRelationContainer') {
console.log('hostParams',hostParams);
return (
<AppContext.Provider value={{
env: hostParams?.env,
user: hostParams?.user,
setGlobalState,
onGlobalStateChange
}}>
<RelationContainer nodeParams={hostParams?.nodeParams} dirs={hostParams?.dirs} resize={false}/>
</AppContext.Provider>
);
}
return ( return (
<AppContext.Provider value={{ <AppContext.Provider value={{
......
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