feat: base route支持iframe

This commit is contained in:
caoqianming 2025-03-19 08:59:36 +08:00
parent f92c696a9e
commit 6d435a21e4
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ def get_user_route(user: User) -> List[str]:
item.pop("is_fullpage")
item["name"] = item["route_name"]
item.pop("route_name")
if item["path"].startswith("http"):
item["meta"]["type"] = "iframe"
return build_tree_from_list(user_routes_list)