Skip to content

Commit 1d11d5f

Browse files
committed
fix: 修复首页、订单和成交记录页面的空行问题
1 parent 9b4e58b commit 1d11d5f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dashboard/pages/home.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def show_home_page(api):
2424
with col1:
2525
st.metric("👥 用户总数", total_users)
2626
with col2:
27-
st.metric("📈 交易对", "2", delta="BTC/USDT, ETH/USDT")
27+
st.metric("📈 交易对", "2")
2828
with col3:
2929
# 尝试获取订单统计
3030
try:

dashboard/pages/orders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def show_orders_page(api):
6161
if isinstance(orders, str):
6262
st.error(f"❌ API 返回错误: {orders}")
6363
return
64-
64+
6565
if not orders or not isinstance(orders, list) or len(orders) == 0:
6666
st.info("📭 暂无订单数据")
6767
else:

dashboard/pages/trades.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def show_trades_page(api):
3737
if isinstance(trades, str):
3838
st.error(f"❌ API 返回错误: {trades}")
3939
return
40-
40+
4141
if not trades or not isinstance(trades, list) or len(trades) == 0:
4242
st.info(f"📭 暂无 {symbol_filter} 的成交记录")
4343
else:

0 commit comments

Comments
 (0)