修复请求重写启用状态

This commit is contained in:
wanghongenpin
2023-09-22 18:00:12 +08:00
parent a6cab55dcc
commit fbf6e33f56
2 changed files with 2 additions and 0 deletions

View File

@@ -154,6 +154,7 @@ class _RewriteRuleState extends State<RewriteRule> {
if ((formKey.currentState as FormState).validate()) {
(formKey.currentState as FormState).save();
rule.updatePathReg();
rule.enabled = enableNotifier.value;
if (widget.currentIndex >= 0) {
RequestRewrites.instance.rules[widget.currentIndex] = rule;
} else {