Commit f1b67a30 authored by 张烨's avatar 张烨

style: webconfig

parent 95eacae1
...@@ -39,12 +39,15 @@ const WebConfigPage = props => { ...@@ -39,12 +39,15 @@ const WebConfigPage = props => {
}, []); }, []);
useEffect(() => { useEffect(() => {
if (!curWeb) return;
const title = curWeb.text;
// eslint-disable-next-line no-unused-expressions // eslint-disable-next-line no-unused-expressions
curWeb && getWebconfig(curWeb.text).then(res => {
getWebconfig(curWeb.text).then(res => { setConfigObj(res);
setConfigObj(res); if (title === curWeb.text) {
setToEdit(res); setToEdit(res);
}); }
});
}, [curWeb]); }, [curWeb]);
const renderTabPane = tabPaneItem => ( const renderTabPane = tabPaneItem => (
......
.webConfigContainer{ .webConfigContainer{
position: absolute;
width: 100%;
height: 100%;
.ant-tabs-content-holder>.ant-tabs-content.ant-tabs-content-top{
position: absolute;
width: 100%;
height: calc(100% - 40px);
}
} }
.webConfigContainer > .ant-tabs-card .ant-tabs-content { .webConfigContainer > .ant-tabs-card .ant-tabs-content {
......
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