更新Company页面的UI为FUI风格

This commit is contained in:
2025-12-18 20:06:51 +08:00
parent bc319f63d0
commit a0388f73b0
5 changed files with 165 additions and 78 deletions

7
app.py
View File

@@ -18875,5 +18875,12 @@ if __name__ == '__main__':
# 初始化事件轮询机制WebSocket 推送)
initialize_event_polling()
# 启动时预热股票缓存(股票名称 + 前收盘价)
print("[启动] 正在预热股票缓存...")
try:
preload_stock_cache()
except Exception as e:
print(f"[启动] 预热缓存失败(不影响服务启动): {e}")
# 使用 socketio.run 替代 app.run 以支持 WebSocket
socketio.run(app, host='0.0.0.0', port=5001, debug=False, allow_unsafe_werkzeug=True)