From 1727130c475001051d4547c9f6c3b14a37be0c2e Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 18 Mar 2025 01:16:40 +0800 Subject: [PATCH] Added /login to VITE_API_ENDPOINTS --- lightrag_webui/env.local.sample | 2 +- lightrag_webui/src/main.tsx | 2 +- lightrag_webui/src/stores/settings.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lightrag_webui/env.local.sample b/lightrag_webui/env.local.sample index 0f2c293c..11fa8798 100644 --- a/lightrag_webui/env.local.sample +++ b/lightrag_webui/env.local.sample @@ -1,3 +1,3 @@ VITE_BACKEND_URL=http://localhost:9621 VITE_API_PROXY=true -VITE_API_ENDPOINTS=/api,/documents,/graphs,/graph,/health,/query,/docs,/openapi.json +VITE_API_ENDPOINTS=/api,/documents,/graphs,/graph,/health,/query,/docs,/openapi.json,/login diff --git a/lightrag_webui/src/main.tsx b/lightrag_webui/src/main.tsx index 4b7f94b9..4c613602 100644 --- a/lightrag_webui/src/main.tsx +++ b/lightrag_webui/src/main.tsx @@ -2,7 +2,7 @@ import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import './index.css' import AppRouter from './AppRouter' -import "./i18n"; +import './i18n'; diff --git a/lightrag_webui/src/stores/settings.ts b/lightrag_webui/src/stores/settings.ts index d1b3944d..72df7351 100644 --- a/lightrag_webui/src/stores/settings.ts +++ b/lightrag_webui/src/stores/settings.ts @@ -7,7 +7,6 @@ import { Message, QueryRequest } from '@/api/lightrag' type Theme = 'dark' | 'light' | 'system' type Language = 'en' | 'zh' type Tab = 'documents' | 'knowledge-graph' | 'retrieval' | 'api' -type Language = 'en' | 'zh' interface SettingsState { // Graph viewer settings