Skip to content

Commit

Permalink
fix:修复配置加密关闭后仍然处于启用问题 (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun authored Jun 17, 2023
1 parent 629e25c commit 54f8bd7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ const CreateForm = purify(function CreateForm(props: DuckCmpProps<Duck>) {
</FormItem>
<FormField field={encrypted} label={'配置加密'}>
<Switch defaultValue={encrypted.getValue()} onChange={(value, context) => {
if (!value) {
// 配置鉴权关闭的话,设置加密算法为空
encryptAlgo.setValue("")
}
encrypted.setValue(value)
}}>{encrypted?.getValue() ? '开启,请选择配置文件加密算法 ' : '未开启'}</Switch>
{encrypted?.getValue() && (
Expand Down

0 comments on commit 54f8bd7

Please sign in to comment.