diff --git a/lib/instance/instance_embed_lib.py b/lib/instance/instance_embed_lib.py index 5d57bfe..58d7042 100644 --- a/lib/instance/instance_embed_lib.py +++ b/lib/instance/instance_embed_lib.py @@ -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":