Commit 27b4a9af authored by 皮倩雯's avatar 皮倩雯

fix: '修复web配置接口调两次bug'

parent f187bbb1
Pipeline #58295 waiting for manual action with stages
......@@ -391,7 +391,7 @@ const NodeEdit = props => {
<Radio value="1"></Radio>
</Radio.Group>
</Form.Item>
<Form.Item label="消息接收" name="IsSendMessage">
<Form.Item label="是否发送短信" name="IsSendMessage">
<Radio.Group>
<Radio value={0}></Radio>
<Radio value={1}></Radio>
......
......@@ -111,6 +111,7 @@ export default props => {
form.setFieldsValue({
messageMarking: 'All',
messageVoice: true,
menuState: 'open',
hideMap: false,
loginTemplate: 'Default.html',
primaryColor: '#0087F7',
......@@ -454,6 +455,12 @@ export default props => {
<Radio value={false}>关闭</Radio>
</Radio.Group>
</Form.Item>
<Form.Item label="菜单状态" name="menuState">
<Radio.Group>
<Radio value="open">开启</Radio>
<Radio value="close">关闭</Radio>
</Radio.Group>
</Form.Item>
</div>
</Form>
<ColorLinear
......
......@@ -82,8 +82,7 @@ const WebConfigPage = props => {
const updateModuleTree = (userModePrama, canceled = { cancel: false }) => {
setLoading(true);
console.log(userModePrama);
return getWebModuleTree(userModePrama)
getWebModuleTree(userModePrama)
.then(res => {
const websArr = [
// 暂时不要集成网站
......@@ -106,14 +105,12 @@ const WebConfigPage = props => {
].flat(2);
if (!canceled.cancel) {
setWebs(websArr);
console.log(websArr[0], 'websArr[0]');
if (!curWeb) setCurWeb(websArr[0]);
setLoading(false);
}
})
.catch(err => {
// eslint-disable-next-line no-console
console.error(err);
setLoading(false);
});
};
......
......@@ -68,9 +68,9 @@ const MiniMenu = props => {
console.log(expendKey);
getInfo();
}, [menuID, webid]);
useEffect(() => {
getTree();
}, []);
// useEffect(() => {
// getTree();
// }, []);
useEffect(() => {
getTree();
return () => {
......
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