fix: import urlencode from urllib.parse in embed redirect

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-07 10:48:38 +08:00
parent 30e40dc34c
commit 86188e6611
-2
View File
@@ -74,8 +74,6 @@ def embed_shell_enabled() -> bool:
def redirect_to_embed_shell_if_enabled(page: str):
"""直连 /trade 等整页路由时,重定向到 embed 壳(顶栏常驻、tab 软切换)。"""
from flask import redirect, request, urlencode
if not embed_shell_enabled():
return None
if (request.args.get("embed") or "").strip() == "1":