From 86188e66113c830172c2fa3038988613a7a233df Mon Sep 17 00:00:00 2001 From: dekun Date: Tue, 7 Jul 2026 10:48:38 +0800 Subject: [PATCH] fix: import urlencode from urllib.parse in embed redirect Co-authored-by: Cursor --- lib/instance/instance_embed_lib.py | 2 -- 1 file changed, 2 deletions(-) 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":