fix:模型选择限制

This commit is contained in:
Gsh
2025-06-30 17:53:59 +08:00
parent f12f0e1f84
commit 01a5ad5302
3 changed files with 74 additions and 10 deletions

View File

@@ -15,8 +15,11 @@ const userRole = computed(() => {
return roles.some(role => role.roleCode === 'YiXinAi-Vip') ? 'vip' : 'user';
});
// const src = computed(
// () => userStore.userInfo?.avatar ?? 'https://avatars.githubusercontent.com/u/76239030',
// );
const src = computed(
() => userStore.userInfo?.avatar ?? 'https://avatars.githubusercontent.com/u/76239030',
() => userStore.userInfo.user.icon ? `${import.meta.env.VITE_WEB_BASE_API}/file/${userStore.userInfo.user.icon}` : `@/assets/images/logo.png`,
);
/* 弹出面板 开始 */