mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-20 12:56: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:
@ -1,3 +1,4 @@
|
||||
import { Domain } from '@/constants/common';
|
||||
import { useSecondPathName } from '@/hooks/routeHook';
|
||||
import type { MenuProps } from 'antd';
|
||||
import { Flex, Menu } from 'antd';
|
||||
@ -23,7 +24,9 @@ const SideBar = () => {
|
||||
const { version, fetchSystemVersion } = useFetchSystemVersion();
|
||||
|
||||
useEffect(() => {
|
||||
fetchSystemVersion();
|
||||
if (location.host !== Domain) {
|
||||
fetchSystemVersion();
|
||||
}
|
||||
}, [fetchSystemVersion]);
|
||||
|
||||
function getItem(
|
||||
|
||||
Reference in New Issue
Block a user