diff --git a/src/auth-apply.png b/src/auth-apply.png new file mode 100644 index 0000000..0ce1dc7 Binary files /dev/null and b/src/auth-apply.png differ diff --git a/src/views/ProtectedRoute.jsx b/src/views/ProtectedRoute.jsx index 889609e..76a6813 100644 --- a/src/views/ProtectedRoute.jsx +++ b/src/views/ProtectedRoute.jsx @@ -1,8 +1,11 @@ import { useContext } from 'react'; -import { Button, Result, message } from 'antd'; +import { Button, Result, message, Typography, Image } from 'antd'; import { stores_Context } from '../config'; import { observer } from 'mobx-react'; -import { Outlet, useLocation, } from 'react-router-dom'; +import { Outlet, useLocation } from 'react-router-dom'; +import authExample from './../auth-apply.png'; + +const { Text } = Typography; const ProtectedRoute = ({ auth }) => { const { auth_store } = useContext(stores_Context); @@ -32,16 +35,49 @@ const ProtectedRoute = ({ auth }) => { title="403 权限不足" subTitle={ <> -
+ {applyInfo} ++
- {applyInfo} -> } - extra={} />