From a1fb7946507ae95eca5fed0f2dda145e8475790a Mon Sep 17 00:00:00 2001 From: wizardchen Date: Thu, 13 Nov 2025 20:32:58 +0800 Subject: [PATCH] refactor: Update frontend build configuration in docker-compose and clean up router - Changed the build context and Dockerfile path for the frontend service in docker-compose.yml for better organization. - Removed the knowledge base settings route from the router to streamline navigation and improve code clarity. --- docker-compose.yml | 4 ++-- frontend/src/router/index.ts | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3dda55b96..f071b8fba 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -114,8 +114,8 @@ services: frontend: image: wechatopenai/weknora-ui:latest build: - context: . - dockerfile: frontend/Dockerfile + context: ./frontend + dockerfile: Dockerfile container_name: WeKnora-frontend ports: - "${FRONTEND_PORT:-80}:80" diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 8795bf418..034c75841 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -63,13 +63,6 @@ const router = createRouter({ component: () => import("../views/creatChat/creatChat.vue"), meta: { requiresInit: true, requiresAuth: true } }, - { - path: "knowledge-bases/:kbId/settings", - name: "knowledgeBaseSettings", - component: () => import("../views/initialization/InitializationContent.vue"), - props: { isKbSettings: true }, - meta: { requiresInit: true, requiresAuth: true } - }, { path: "chat/:chatid", name: "chat",