mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 17:16:52 +08:00
Feat: Admin UI (#10857)
### What problem does this PR solve? Add admin UI for RAGFlow ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
9
web/src/wrappers/authAdmin.tsx
Normal file
9
web/src/wrappers/authAdmin.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { Routes } from '@/routes';
|
||||
import authorizationUtil from '@/utils/authorization-util';
|
||||
import { Navigate, Outlet } from 'umi';
|
||||
|
||||
export default () => {
|
||||
const isLogin = !!authorizationUtil.getAuthorization();
|
||||
|
||||
return isLogin ? <Outlet /> : <Navigate to={Routes.Admin} />;
|
||||
};
|
||||
Reference in New Issue
Block a user