From 048c5a9ff4607d70ab3d11818a642469708bdebc Mon Sep 17 00:00:00 2001 From: peima Date: Sat, 1 Aug 2026 23:29:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(runtime):=20contact-stores=20initState=20ht?= =?UTF-8?q?tpGet.then=20setState=20=E5=8A=A0=20mounted=20=E4=BF=9D?= =?UTF-8?q?=E6=8A=A4=20(dispose=20=E5=90=8E=20setState)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/widgets/desktop/create_online_store_1.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/widgets/desktop/create_online_store_1.dart b/lib/widgets/desktop/create_online_store_1.dart index 4ac1d87..8c80857 100644 --- a/lib/widgets/desktop/create_online_store_1.dart +++ b/lib/widgets/desktop/create_online_store_1.dart @@ -383,13 +383,14 @@ class CreateOnlineStore1State extends State { 'service': Constants.WEB_MINISTORE_SERVICE } ).then((value) { + if (!mounted) return; setState(() { stores = value['stores']; service = value['service']; group = Group.fromJson(value['group']); - print('stores: ${value}'); }); }).onError((error, stackTrace) { + if (!mounted) return; Utils.showMessageDialog(context, error, onOk: () { Routes.router.navigateTo(context, '/'); });