Skip to content

Commit

Permalink
fix: fixed the issue of 404 error in the user settings page of the de…
Browse files Browse the repository at this point in the history
…mo site (#948)

### What problem does this PR solve?

fix: fixed the issue of 404 error in the user settings page of the demo
site #947

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
cike8899 committed May 28, 2024
1 parent 5041677 commit 196f2b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/src/interfaces/database/knowledge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export interface IChunk {
chunk_id: string;
content_with_weight: string;
doc_id: string;
docnm_kwd: string;
doc_name: string;
img_id: string;
important_kwd: any[];
positions: number[][];
Expand All @@ -89,7 +89,7 @@ export interface ITestingChunk {
content_ltks: string;
content_with_weight: string;
doc_id: string;
docnm_kwd: string;
doc_name: string;
img_id: string;
important_kwd: any[];
kb_id: string;
Expand Down
5 changes: 4 additions & 1 deletion web/src/pages/user-setting/sidebar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Domain } from '@/constants/common';
import { useSecondPathName } from '@/hooks/routeHook';
import type { MenuProps } from 'antd';
import { Flex, Menu } from 'antd';
Expand All @@ -23,7 +24,9 @@ const SideBar = () => {
const { version, fetchSystemVersion } = useFetchSystemVersion();

useEffect(() => {
fetchSystemVersion();
if (location.host !== Domain) {
fetchSystemVersion();
}
}, [fetchSystemVersion]);

function getItem(
Expand Down

0 comments on commit 196f2b4

Please sign in to comment.