mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: change all file names to lowercase #1574 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
import { useAuth } from '@/hooks/authHook';
|
||||
import { Navigate, Outlet } from 'umi';
|
||||
|
||||
export default () => {
|
||||
const { isLogin } = useAuth();
|
||||
if (isLogin === true) {
|
||||
return <Outlet />;
|
||||
} else if (isLogin === false) {
|
||||
return <Navigate to="/login" />;
|
||||
}
|
||||
|
||||
return <></>;
|
||||
};
|
||||
import { useAuth } from '@/hooks/auth-hooks';
|
||||
import { Navigate, Outlet } from 'umi';
|
||||
|
||||
export default () => {
|
||||
const { isLogin } = useAuth();
|
||||
if (isLogin === true) {
|
||||
return <Outlet />;
|
||||
} else if (isLogin === false) {
|
||||
return <Navigate to="/login" />;
|
||||
}
|
||||
|
||||
return <></>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user