Commit ffeee370 authored by 皮倩雯's avatar 皮倩雯

fix: 'web网站配置增加是否开启公告'

parent 9a88a27b
Pipeline #80027 passed with stages
...@@ -164,7 +164,7 @@ export default props => { ...@@ -164,7 +164,7 @@ export default props => {
setVisibleChecked5(false); setVisibleChecked5(false);
} }
console.log(config); console.log(config);
debugger;
setVisibleChecked(config.navTheme == 'light'); setVisibleChecked(config.navTheme == 'light');
setVisibleChecked2(config.hideMap); setVisibleChecked2(config.hideMap);
setVisibleChecked4(config.messageVoice); setVisibleChecked4(config.messageVoice);
...@@ -182,6 +182,7 @@ export default props => { ...@@ -182,6 +182,7 @@ export default props => {
useCoverMap: config.useCoverMap == 'true', useCoverMap: config.useCoverMap == 'true',
isCache: config.isCache, isCache: config.isCache,
changeStation: config.changeStation, changeStation: config.changeStation,
OpenAnnouncement: config.OpenAnnouncement,
headerPrimaryColor: config.headerPrimaryColor headerPrimaryColor: config.headerPrimaryColor
? config.headerPrimaryColor ? config.headerPrimaryColor
: 'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)', : 'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)',
...@@ -232,6 +233,7 @@ export default props => { ...@@ -232,6 +233,7 @@ export default props => {
useCoverMap: true, useCoverMap: true,
isCache: true, isCache: true,
changeStation: false, changeStation: false,
OpenAnnouncement: false,
headerPrimaryColor: 'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)', headerPrimaryColor: 'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)',
}); });
setCheckValue([]); setCheckValue([]);
...@@ -769,6 +771,9 @@ export default props => { ...@@ -769,6 +771,9 @@ export default props => {
onChange={change4} onChange={change4}
/> />
</Form.Item> </Form.Item>
<Form.Item label="开启公告" name="OpenAnnouncement" valuePropName="checked">
<Switch checkedChildren="是" unCheckedChildren="否" />
</Form.Item>
{/* <Form.Item label="菜单样式" name="menuState"> {/* <Form.Item label="菜单样式" name="menuState">
<Switch <Switch
checkedChildren="展开" checkedChildren="展开"
......
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