From 1e12df5c8cce9848fb4bf6cbb112fb0cb08a4efe Mon Sep 17 00:00:00 2001 From: nixevol Date: Wed, 16 Sep 2026 16:48:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=86=E4=BE=A7=E6=A0=8F=E5=93=81?= =?UTF-8?q?=E7=89=8C=E7=A7=BB=E5=88=B0=E5=AF=BC=E8=88=AA=E4=B8=8A=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 5054441..55ae985 100644 --- a/app.py +++ b/app.py @@ -11,8 +11,19 @@ pages = { "results": st.Page(results_page.render, title="成果浏览", icon="📦", url_path="results"), } st.session_state["pages"] = pages +nav = st.navigation( + {"工具": [pages["home"], pages["market"], pages["buildings"]], + "工作记录": [pages["tasks"], pages["results"]]}, + position="hidden", +) with st.sidebar: st.title("MarketGrid") - st.caption("本地空间数据工具箱") -st.navigation({"工具": [pages["home"], pages["market"], pages["buildings"]], - "工作记录": [pages["tasks"], pages["results"]]}).run() + st.caption("空间数据工具箱") + st.subheader("工具") + st.page_link(pages["home"], label="工具箱首页", icon="🏠", use_container_width=True) + st.page_link(pages["market"], label="市场网格出图", icon="🗺️", use_container_width=True) + st.page_link(pages["buildings"], label="楼宇数据查询", icon="🏢", use_container_width=True) + st.subheader("工作记录") + st.page_link(pages["tasks"], label="任务中心", icon="⏳", use_container_width=True) + st.page_link(pages["results"], label="成果浏览", icon="📦", use_container_width=True) +nav.run()