fix: 禁止移动端缩放、对话头像更改

This commit is contained in:
Gsh
2025-07-08 00:29:41 +08:00
parent 4710208e81
commit 9408242726
4 changed files with 11 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
<meta name="version" content="%VITE_APP_VERSION%" />
<meta name="version" content="%VITE_WEB_TITLE%" />
<title>%VITE_WEB_TITLE%</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
</head>
<body>

View File

@@ -14,3 +14,8 @@ export function applyApiKey() {
export function getApiKey() {
return get<any>('/token').json();
}
// 查询充值记录
export function getRechargeLog() {
return get<any>('/recharge/account').json();
}

View File

@@ -1,6 +1,7 @@
import type { ChatMessageVo } from '@/api/chat/types';
import { defineStore } from 'pinia';
import { getChatList } from '@/api';
import { systemProfilePicture, userProfilePicture } from '@/utils/user.ts';
import { useUserStore } from './user';
export const useChatStore = defineStore('chat', () => {
@@ -34,8 +35,8 @@ export const useChatStore = defineStore('chat', () => {
// variant: 'shadow',
// shape: 'corner',
avatar: isUser
? avatar
: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
? userProfilePicture
: systemProfilePicture,
avatarSize: '32px',
typing: false,
reasoning_content: thinkContent,

View File

@@ -7,9 +7,9 @@ const userRoles = userStore.userInfo?.roles ?? [];
const isUserVip = userRoles.some((role: any) => role.roleCode === 'YiXinAi-Vip');
// 用户头像
const userProfilePicture = userStore.userInfo?.user?.icon ? `${import.meta.env.VITE_WEB_BASE_API}/file/${userStore.userInfo.user.icon}` : `@/assets/images/user.png`;
const userProfilePicture = userStore.userInfo?.user?.icon ? `${import.meta.env.VITE_WEB_BASE_API}/file/${userStore.userInfo.user.icon}` : `/images/user.png`;
// 系统头像
const systemProfilePicture = `@/assets/images/user.png`;
const systemProfilePicture = `/images/logo.png`;
export {
isUserVip,