fix: 修复是否自动禁用选项不生效

This commit is contained in:
CaIon 2024-02-01 17:22:26 +08:00
parent 6d0479632a
commit 166770eebf

View File

@ -213,6 +213,7 @@ const EditChannel = (props) => {
handleCancel();
return;
}
localInputs.auto_ban = autoBan ? 1 : 0;
localInputs.models = localInputs.models.join(',');
localInputs.group = localInputs.groups.join(',');
if (isEdit) {
@ -528,7 +529,6 @@ const EditChannel = (props) => {
onChange={
() => {
setAutoBan(!autoBan);
}
}
// onChange={handleInputChange}