diff --git a/src/pages/User/index.tsx b/src/pages/User/index.tsx index a7e6e13..b164274 100644 --- a/src/pages/User/index.tsx +++ b/src/pages/User/index.tsx @@ -7,6 +7,8 @@ import { getRoleListAPI } from '@/api/Role' import type { FilterForm, FilterUser, User } from '@/types/app/user'; import { Role } from '@/types/app/role'; +import { useUserStore } from '@/stores' + import { titleSty } from '@/styles/sty'; import Title from '@/components/Title'; import logo from '@/images/logo/logo.png'; @@ -16,6 +18,8 @@ const UserPage = () => { const [loading, setLoading] = useState(false); const [btnLoading, setBtnLoading] = useState(false) + const store = useUserStore() + const [userList, setUserList] = useState([]); const [roleList, setRoleList] = useState([]); const [user, setUser] = useState({} as User) @@ -96,7 +100,7 @@ const UserPage = () => { delUserData(record.id!)}> - + ),