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

fix: 'web配置新增站点切换'

parent 97f59ee5
Pipeline #79126 passed with stages
...@@ -139,6 +139,7 @@ export default props => { ...@@ -139,6 +139,7 @@ export default props => {
if (isEdit) { if (isEdit) {
// 获取表单回显 // 获取表单回显
console.log(config, 'config'); console.log(config, 'config');
debugger;
if (config.CloudStyle == '是') { if (config.CloudStyle == '是') {
config.CloudStyle == true; config.CloudStyle == true;
setVisibleChecked1(true); setVisibleChecked1(true);
...@@ -180,6 +181,7 @@ export default props => { ...@@ -180,6 +181,7 @@ export default props => {
menuState: config.menuState, menuState: config.menuState,
useCoverMap: config.useCoverMap == 'true', useCoverMap: config.useCoverMap == 'true',
isCache: config.isCache, isCache: config.isCache,
changeStation: config.changeStation,
headerPrimaryColor: config.headerPrimaryColor headerPrimaryColor: config.headerPrimaryColor
? config.headerPrimaryColor ? config.headerPrimaryColor
: 'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)', : 'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)',
...@@ -229,6 +231,7 @@ export default props => { ...@@ -229,6 +231,7 @@ export default props => {
CloudStyle: true, CloudStyle: true,
useCoverMap: true, useCoverMap: true,
isCache: true, isCache: true,
changeStation: false,
headerPrimaryColor: 'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)', headerPrimaryColor: 'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)',
}); });
setCheckValue([]); setCheckValue([]);
...@@ -534,6 +537,9 @@ export default props => { ...@@ -534,6 +537,9 @@ export default props => {
<Form.Item label="页面缓存" name="isCache" valuePropName="checked"> <Form.Item label="页面缓存" name="isCache" valuePropName="checked">
<Switch checkedChildren="开启" unCheckedChildren="关闭" /> <Switch checkedChildren="开启" unCheckedChildren="关闭" />
</Form.Item> </Form.Item>
<Form.Item label="站点切换" name="changeStation" valuePropName="checked">
<Switch checkedChildren="开启" unCheckedChildren="关闭" />
</Form.Item>
<Divider orientation="left" style={{ borderTopColor: '#99bbe8' }}> <Divider orientation="left" style={{ borderTopColor: '#99bbe8' }}>
主页配置 主页配置
</Divider> </Divider>
......
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