mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-15 20:35:55 +08:00
fix: fixed the issue of 404 error in the user settings page of the demo 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)
This commit is contained in:
parent
5041677f11
commit
196f2b445f
@ -78,7 +78,7 @@ export interface IChunk {
|
|||||||
chunk_id: string;
|
chunk_id: string;
|
||||||
content_with_weight: string;
|
content_with_weight: string;
|
||||||
doc_id: string;
|
doc_id: string;
|
||||||
docnm_kwd: string;
|
doc_name: string;
|
||||||
img_id: string;
|
img_id: string;
|
||||||
important_kwd: any[];
|
important_kwd: any[];
|
||||||
positions: number[][];
|
positions: number[][];
|
||||||
@ -89,7 +89,7 @@ export interface ITestingChunk {
|
|||||||
content_ltks: string;
|
content_ltks: string;
|
||||||
content_with_weight: string;
|
content_with_weight: string;
|
||||||
doc_id: string;
|
doc_id: string;
|
||||||
docnm_kwd: string;
|
doc_name: string;
|
||||||
img_id: string;
|
img_id: string;
|
||||||
important_kwd: any[];
|
important_kwd: any[];
|
||||||
kb_id: string;
|
kb_id: string;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { Domain } from '@/constants/common';
|
||||||
import { useSecondPathName } from '@/hooks/routeHook';
|
import { useSecondPathName } from '@/hooks/routeHook';
|
||||||
import type { MenuProps } from 'antd';
|
import type { MenuProps } from 'antd';
|
||||||
import { Flex, Menu } from 'antd';
|
import { Flex, Menu } from 'antd';
|
||||||
@ -23,7 +24,9 @@ const SideBar = () => {
|
|||||||
const { version, fetchSystemVersion } = useFetchSystemVersion();
|
const { version, fetchSystemVersion } = useFetchSystemVersion();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (location.host !== Domain) {
|
||||||
fetchSystemVersion();
|
fetchSystemVersion();
|
||||||
|
}
|
||||||
}, [fetchSystemVersion]);
|
}, [fetchSystemVersion]);
|
||||||
|
|
||||||
function getItem(
|
function getItem(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user