leaveApproval
+ > + ); +}; + +export default LeaveApproval; diff --git a/src/pages/login/login.tsx b/src/pages/login/login.tsx index c6565ac..c8994db 100644 --- a/src/pages/login/login.tsx +++ b/src/pages/login/login.tsx @@ -10,17 +10,17 @@ const Login = (props) => { const navigate = useNavigate(); const onFinish = (values: any) => { usrStore.login({ - userName: values.username, + userName: values.account, passWord: values.password, }); - navigate("/", { replace: true }); + navigate("/admin/user", { replace: true }); }; const onFinishFailed = () => {}; const loginForm = [ { type: "input", label: "用户名", - name: "username", + name: "account", value: "", rules: [{ required: true, message: "请输入用户名!" }], }, @@ -42,7 +42,7 @@ const Login = (props) => {MaterialMgmt
+ > + ); + }; + + export default MaterialMgmt; + \ No newline at end of file diff --git a/src/pages/persMgmt/index.tsx b/src/pages/persMgmt/index.tsx new file mode 100644 index 0000000..d3e3345 --- /dev/null +++ b/src/pages/persMgmt/index.tsx @@ -0,0 +1,10 @@ +const PersMgmt = () => { + return ( + <> +PersMgmt
+ > + ); + }; + + export default PersMgmt; + \ No newline at end of file diff --git a/src/pages/polRegulations/index.tsx b/src/pages/polRegulations/index.tsx new file mode 100644 index 0000000..dfe2734 --- /dev/null +++ b/src/pages/polRegulations/index.tsx @@ -0,0 +1,10 @@ +const PolRegulations = () => { + return ( + <> +PolRegulations
+ > + ); + }; + + export default PolRegulations; + \ No newline at end of file diff --git a/src/pages/politicalStudy/index.tsx b/src/pages/politicalStudy/index.tsx new file mode 100644 index 0000000..164e269 --- /dev/null +++ b/src/pages/politicalStudy/index.tsx @@ -0,0 +1,10 @@ +const PoliticalStudy = () => { + return ( + <> +PoliticalStudy
+ > + ); + }; + + export default PoliticalStudy; + \ No newline at end of file diff --git a/src/pages/teamMgmt/index.tsx b/src/pages/teamMgmt/index.tsx new file mode 100644 index 0000000..e3fa6cc --- /dev/null +++ b/src/pages/teamMgmt/index.tsx @@ -0,0 +1,10 @@ +const TeamMgmt = () => { + return ( + <> +TeamMgmt
+ > + ); + }; + + export default TeamMgmt; + \ No newline at end of file diff --git a/src/pages/user/user.tsx b/src/pages/user/user.tsx index f2ec4e9..e0e4d30 100644 --- a/src/pages/user/user.tsx +++ b/src/pages/user/user.tsx @@ -164,7 +164,6 @@ const User = (props: Store) => { > 添加用户 - - - - - - - - - -WhseMgmt
+ > + ); + }; + + export default WhseMgmt; + \ No newline at end of file diff --git a/src/router/index.tsx b/src/router/index.tsx index b706511..bf3e0cb 100644 --- a/src/router/index.tsx +++ b/src/router/index.tsx @@ -1,27 +1,17 @@ import { createHashRouter } from "react-router-dom"; import App from "@/App"; -import ErrorPage from "@/pages/errorPage"; import Login from "@/pages/login/login"; -import { homeRouter } from "@/router/routers/home_router" +import { homeRouter } from "@/router/routers/home_router"; const routers = createHashRouter([ { path: "/", element: