From 467c4c0eb2dfdbd484bda109ebf4976c22f3ca56 Mon Sep 17 00:00:00 2001 From: Liang Jiaqing Date: Thu, 19 Feb 2026 10:26:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E4=B8=BB=E8=A1=8C=E5=8A=A8?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=AB=8B=E5=8D=B3=E7=94=9F=E6=95=88=EF=BC=8C?= =?UTF-8?q?=E5=8E=BB=E6=8E=89scope=3Dfragment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stapp.py b/stapp.py index 6730978..f703c12 100644 --- a/stapp.py +++ b/stapp.py @@ -56,13 +56,13 @@ def render_sidebar(): if st.button("⏸️ 禁止自主行动"): st.session_state.autonomous_enabled = False st.toast("⏸️ 已禁止自主行动") - st.rerun(scope="fragment") + st.rerun() st.caption("🟢 自主行动运行中,会在你离开它30分钟后自动进行") else: if st.button("▶️ 允许自主行动", type="primary"): st.session_state.autonomous_enabled = True st.toast("✅ 已允许自主行动") - st.rerun(scope="fragment") + st.rerun() st.caption("🔴 自主行动已停止") with st.sidebar: render_sidebar()