balibabu commited on
Commit
72bee74
·
1 Parent(s): 4b09b61

fix: fixed the issue of 404 error in the user settings page of the demo site (#948)

Browse files

### 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)

web/src/interfaces/database/knowledge.ts CHANGED
@@ -78,7 +78,7 @@ export interface IChunk {
78
  chunk_id: string;
79
  content_with_weight: string;
80
  doc_id: string;
81
- docnm_kwd: string;
82
  img_id: string;
83
  important_kwd: any[];
84
  positions: number[][];
@@ -89,7 +89,7 @@ export interface ITestingChunk {
89
  content_ltks: string;
90
  content_with_weight: string;
91
  doc_id: string;
92
- docnm_kwd: string;
93
  img_id: string;
94
  important_kwd: any[];
95
  kb_id: string;
 
78
  chunk_id: string;
79
  content_with_weight: string;
80
  doc_id: string;
81
+ doc_name: string;
82
  img_id: string;
83
  important_kwd: any[];
84
  positions: number[][];
 
89
  content_ltks: string;
90
  content_with_weight: string;
91
  doc_id: string;
92
+ doc_name: string;
93
  img_id: string;
94
  important_kwd: any[];
95
  kb_id: string;
web/src/pages/user-setting/sidebar/index.tsx CHANGED
@@ -1,3 +1,4 @@
 
1
  import { useSecondPathName } from '@/hooks/routeHook';
2
  import type { MenuProps } from 'antd';
3
  import { Flex, Menu } from 'antd';
@@ -23,7 +24,9 @@ const SideBar = () => {
23
  const { version, fetchSystemVersion } = useFetchSystemVersion();
24
 
25
  useEffect(() => {
26
- fetchSystemVersion();
 
 
27
  }, [fetchSystemVersion]);
28
 
29
  function getItem(
 
1
+ import { Domain } from '@/constants/common';
2
  import { useSecondPathName } from '@/hooks/routeHook';
3
  import type { MenuProps } from 'antd';
4
  import { Flex, Menu } from 'antd';
 
24
  const { version, fetchSystemVersion } = useFetchSystemVersion();
25
 
26
  useEffect(() => {
27
+ if (location.host !== Domain) {
28
+ fetchSystemVersion();
29
+ }
30
  }, [fetchSystemVersion]);
31
 
32
  function getItem(