feat: 完成细节调整
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user