// import { useUserStore } from "@/pinia"; export const useAuth = () => { // const buttonAuths = useUserStore().buttonAuth; /** * * @param authCode 判断按钮是否有权限 * @returns */ // const hasAuthButton = (authCode: string): boolean => buttonAuths.has(authCode); const hasAuthButton = (authCode: string): boolean => { console.log(authCode); return true; }; return { hasAuthButton, }; };