Files
2026-07-13 15:23:29 +08:00

11 lines
217 B
TypeScript

import useAuthStore from "@/stores/user";
function useAuth() {
const access = useAuthStore(state => state.access);
const auth = (key: string) => access.includes(key);
return {auth};
}
export default useAuth;