fix: 加载优化、vip状态优化、apikey优化

This commit is contained in:
Gsh
2025-08-04 23:11:42 +08:00
parent 0a2710b865
commit 65d5f5ae86
11 changed files with 172 additions and 93 deletions

View File

@@ -1,18 +1,12 @@
import type { ChatMessageVo } from '@/api/chat/types';
import { defineStore } from 'pinia';
import { getChatList } from '@/api';
import { systemProfilePicture, userProfilePicture } from '@/utils/user.ts';
import { getUserProfilePicture, systemProfilePicture } from '@/utils/user.ts';
import { useUserStore } from './user';
export const useChatStore = defineStore('chat', () => {
const userStore = useUserStore();
// 用户头像
const avatar = computed(() => {
const userInfo = userStore.userInfo;
return userInfo?.avatar || 'https://avatars.githubusercontent.com/u/76239030?v=4';
});
// 是否开启深度思考
const isDeepThinking = ref<boolean>(false);
@@ -35,7 +29,7 @@ export const useChatStore = defineStore('chat', () => {
// variant: 'shadow',
// shape: 'corner',
avatar: isUser
? userProfilePicture
? getUserProfilePicture()
: systemProfilePicture,
avatarSize: '32px',
typing: false,