feat: 完成细节调整

This commit is contained in:
ccnetcore
2025-06-30 21:08:32 +08:00
parent 01a5ad5302
commit ee53b3d9c4
4 changed files with 51 additions and 26 deletions

View File

@@ -19,7 +19,7 @@ const userRole = computed(() => {
// () => userStore.userInfo?.avatar ?? 'https://avatars.githubusercontent.com/u/76239030',
// );
const src = computed(
() => userStore.userInfo.user.icon ? `${import.meta.env.VITE_WEB_BASE_API}/file/${userStore.userInfo.user.icon}` : `@/assets/images/logo.png`,
() => userStore.userInfo?.user?.icon ? `${import.meta.env.VITE_WEB_BASE_API}/file/${userStore.userInfo.user.icon}` : `@/assets/images/logo.png`,
);
/* 弹出面板 开始 */
@@ -99,8 +99,7 @@ function handleClick(item: any) {
}
function openVipGuide() {
const isVip = userRole.value === 'vip';
const isVip = userRole.value === 'vip' || userStore.userInfo?.user?.userName === 'cc';
ElMessageBox.confirm(
`
<div class="text-center leading-relaxed">
@@ -108,7 +107,7 @@ function openVipGuide() {
<p class="mb-2">
${
isVip
? '您已是尊贵会员,享受全部 AI 模型与专属服务。感谢您的支持!'
? '您已是尊贵会员,享受全部 AI 模型与专属服务。感谢支持!'
: '解锁所有 AI 模型,无限加速,专属客服,尽享尊贵体验。'
}
</p>