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:
2
.env
2
.env
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
{/* 处理未匹配的路由 */}
|
||||
|
||||
Reference in New Issue
Block a user