Merge pull request #499 from zhzy0077/patch-1

This commit is contained in:
Haishan 2020-06-18 20:39:33 +08:00 committed by GitHub
commit 48acdbb5be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,15 +27,15 @@ const propsList = [{ id: 0 }, { id: 1 }, { id: 2 }, { id: 3 }];
const optionsRule = [
{
label: 'Global',
value: 'global',
value: 'Global',
},
{
label: 'Rule',
value: 'rule',
value: 'Rule',
},
{
label: 'Direct',
value: 'direct',
value: 'Direct',
},
];
@ -220,7 +220,7 @@ function ConfigImpl({
<ToggleSwitch
options={optionsRule}
name="mode"
value={configState.mode && configState.mode.toLowerCase()}
value={configState.mode}
onChange={handleInputOnChange}
/>
</div>