mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-19 08:56:37 +08:00
fix: 修复是否自动禁用选项不生效
This commit is contained in:
parent
6d0479632a
commit
166770eebf
@ -213,6 +213,7 @@ const EditChannel = (props) => {
|
|||||||
handleCancel();
|
handleCancel();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
localInputs.auto_ban = autoBan ? 1 : 0;
|
||||||
localInputs.models = localInputs.models.join(',');
|
localInputs.models = localInputs.models.join(',');
|
||||||
localInputs.group = localInputs.groups.join(',');
|
localInputs.group = localInputs.groups.join(',');
|
||||||
if (isEdit) {
|
if (isEdit) {
|
||||||
@ -528,7 +529,6 @@ const EditChannel = (props) => {
|
|||||||
onChange={
|
onChange={
|
||||||
() => {
|
() => {
|
||||||
setAutoBan(!autoBan);
|
setAutoBan(!autoBan);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// onChange={handleInputChange}
|
// onChange={handleInputChange}
|
||||||
|
Loading…
Reference in New Issue
Block a user