feat: 「查看接口」改为站内路由,只换右侧内容

- ServicePanel 新增 onOpenApi,链接点击接管为 navigate('/interface');
  按住 Ctrl/Cmd/Shift/Alt 仍保留新标签打开
- 前台内容区已有 route.kind === 'api' 分支,直接渲染接口一览
- 顺手删掉两个没人引用的旧组件:sidebar/Sidebar.tsx、sidebar/CategoryNav.tsx
This commit is contained in:
2026-11-01 22:22:57 +08:00
parent b1fd82a0b6
commit 259eb20411
4 changed files with 20 additions and 152 deletions
+1
View File
@@ -710,6 +710,7 @@ export default function AppNext() {
live={live}
refreshing={refreshing}
onRefresh={refresh}
onOpenApi={() => navigate('/interface')}
/>
)}
{site.sidebar.show_nav !== false && (