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

@@ -5,6 +5,7 @@ import Popover from '@/components/Popover/index.vue';
import SvgIcon from '@/components/SvgIcon/index.vue';
import { useUserStore } from '@/stores';
import { useSessionStore } from '@/stores/modules/session';
import { userProfilePicture } from '@/utils/user';
const router = useRouter();
@@ -82,14 +83,11 @@ function handleClick(item: any) {
switch (item.key) {
case '1':
ElMessage.warning('暂未开放');
console.log('点击了收藏夹');
break;
case '2':
ElMessage.warning('暂未开放');
console.log('点击了设置');
break;
case '5':
console.log('点击了用户中心');
openDialog();
break;
case '4':
@@ -207,13 +205,13 @@ function openVipGuide() {
:popover-style="popoverStyle"
>
<template #trigger>
<el-avatar :src="src" :size="28" fit="fit" shape="circle" />
<el-avatar :src="userProfilePicture" :size="28" fit="fit" shape="circle" />
</template>
<div class="popover-content-box shadow-lg">
<!-- 用户信息 -->
<div class="user-info-box flex items-center gap-8px p-8px rounded-lg mb-2">
<el-avatar :src="src" :size="32" fit="fit" shape="circle" />
<el-avatar :src="userProfilePicture" :size="32" fit="fit" shape="circle" />
<div class="flex flex-col text-sm">
<div class="font-semibold text-gray-800">
{{ userStore.userInfo?.user.nick ?? '未登录用户' }}