fix(routing): correct document-preview route path and update API port

Update the document-preview route path to be relative under the chunk route
and add port number to the API base URL in environment configuration
This commit is contained in:
2025-10-16 17:25:13 +08:00
parent 91bf724ac0
commit f4e2f4f10c
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ const AppRoutes = () => {
<Route path="chunk">
<Route path="parsed-result" element={<ChunkParsedResult />} />
{/* 文档预览页面路由 */}
<Route path="/document-preview/:kb_id/:doc_id" element={<DocumentPreview />} />
<Route path="document-preview/:kb_id/:doc_id" element={<DocumentPreview />} />
</Route>
{/* 处理未匹配的路由 */}