mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-19 00:46:37 +08:00
fix: 修复是否自动禁用选项不生效
This commit is contained in:
parent
6d0479632a
commit
166770eebf
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user