fix: 禁止移动端缩放、对话头像更改
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
<meta name="version" content="%VITE_APP_VERSION%" />
|
<meta name="version" content="%VITE_APP_VERSION%" />
|
||||||
<meta name="version" content="%VITE_WEB_TITLE%" />
|
<meta name="version" content="%VITE_WEB_TITLE%" />
|
||||||
<title>%VITE_WEB_TITLE%</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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -14,3 +14,8 @@ export function applyApiKey() {
|
|||||||
export function getApiKey() {
|
export function getApiKey() {
|
||||||
return get<any>('/token').json();
|
return get<any>('/token').json();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询充值记录
|
||||||
|
export function getRechargeLog() {
|
||||||
|
return get<any>('/recharge/account').json();
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import type { ChatMessageVo } from '@/api/chat/types';
|
import type { ChatMessageVo } from '@/api/chat/types';
|
||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
import { getChatList } from '@/api';
|
import { getChatList } from '@/api';
|
||||||
|
import { systemProfilePicture, userProfilePicture } from '@/utils/user.ts';
|
||||||
import { useUserStore } from './user';
|
import { useUserStore } from './user';
|
||||||
|
|
||||||
export const useChatStore = defineStore('chat', () => {
|
export const useChatStore = defineStore('chat', () => {
|
||||||
@@ -34,8 +35,8 @@ export const useChatStore = defineStore('chat', () => {
|
|||||||
// variant: 'shadow',
|
// variant: 'shadow',
|
||||||
// shape: 'corner',
|
// shape: 'corner',
|
||||||
avatar: isUser
|
avatar: isUser
|
||||||
? avatar
|
? userProfilePicture
|
||||||
: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
|
: systemProfilePicture,
|
||||||
avatarSize: '32px',
|
avatarSize: '32px',
|
||||||
typing: false,
|
typing: false,
|
||||||
reasoning_content: thinkContent,
|
reasoning_content: thinkContent,
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ const userRoles = userStore.userInfo?.roles ?? [];
|
|||||||
const isUserVip = userRoles.some((role: any) => role.roleCode === 'YiXinAi-Vip');
|
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 {
|
export {
|
||||||
isUserVip,
|
isUserVip,
|
||||||
|
|||||||
Reference in New Issue
Block a user