fix: 隐藏文件上传按钮,去除不必要的log打印

This commit is contained in:
Gsh
2025-07-07 23:27:55 +08:00
parent c9b79a074b
commit 4fc6a1e818
19 changed files with 55 additions and 71 deletions

View File

@@ -0,0 +1,18 @@
import { useUserStore } from '@/stores/index.js';
const userStore = useUserStore();
// 获取用户角色信息
const userRoles = userStore.userInfo?.roles ?? [];
const isUserVip = userRoles.some((role: any) => role.roleCode === 'YiXinAi-Vip');
// 用户头像
const userProfilePicture = userStore.userInfo?.user?.icon ? `${import.meta.env.VITE_WEB_BASE_API}/file/${userStore.userInfo.user.icon}` : `@/assets/images/user.png`;
// 系统头像
const systemProfilePicture = `@/assets/images/user.png`;
export {
isUserVip,
systemProfilePicture,
userProfilePicture,
};