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

2
.env
View File

@@ -1,5 +1,5 @@
# VITE_API_BASE_URL = http://150.158.121.95
VITE_API_BASE_URL = http://154.9.253.114
VITE_API_BASE_URL = http://154.9.253.114:9380
VITE_RSA_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArq9XTUSeYr2+N1h3Afl/z8Dse/2yD0ZGrKwx+EEEcdsBLca9Ynmx3nIB5obmLlSfmskLpBo0UACBmB5rEjBp2Q2f3AG3Hjd4B+gNCG6BDaawuDlgANIhGnaTLrIqWrrcm4EMzJOnAOI1fgzJRsOOUEfaS318Eq9OVO3apEyCCt0lOQK6PuksduOjVxtltDav+guVAA068NrPYmRNabVKRNLJpL8w4D44sfth5RvZ3q9t+6RTArpEtc5sh5ChzvqPOzKGMXW83C95TxmXqpbK6olN4RevSfVjEAgCydH6HN6OhtOQEcnrU97r9H0iZOWwbw3pVrZiUkuRD1R56Wzs2wIDAQAB

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>
{/* 处理未匹配的路由 */}