fix: import urlencode from urllib.parse in embed redirect
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user