修改配置文件修改后返回首页没有及时刷新的bug

This commit is contained in:
jyuesong
2022-01-21 14:13:23 +08:00
parent 66f2274f44
commit fdbfc87481
2 changed files with 10 additions and 11 deletions

View File

@@ -49,7 +49,7 @@ class _ConfigEditPageState extends ConsumerState<ConfigEditPage> {
if (response.success) {
"提交成功".toast();
ref.read(configProvider).loadContent(widget.title);
Navigator.of(context).pop();
Navigator.of(context).pop(widget.title);
} else {
(response.message ?? "").toast();
}