fix: 加载优化、vip状态优化、apikey优化
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user