Commit 47ddee3e by CaIon

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

parent 20d07d3f
...@@ -213,6 +213,7 @@ const EditChannel = (props) => { ...@@ -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) => { ...@@ -528,7 +529,6 @@ const EditChannel = (props) => {
onChange={ onChange={
() => { () => {
setAutoBan(!autoBan); setAutoBan(!autoBan);
} }
} }
// onChange={handleInputChange} // onChange={handleInputChange}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment