fix: 修复前端校验兼容与搜索高亮告警

- 为管理端补充 vue-element-plus-x 模块声明与 BotInfo 兼容字段

- 修正用户中心全局搜索高亮片段 key 生成,减少渲染告警风险
This commit is contained in:
2026-03-18 22:26:21 +08:00
parent cff4fe8da9
commit 39a6daf8fe
3 changed files with 16 additions and 8 deletions

View File

@@ -0,0 +1,6 @@
declare module 'vue-element-plus-x/es/*/index.js' {
import type { DefineComponent } from 'vue';
const component: DefineComponent<Record<string, any>, Record<string, any>, any>;
export default component;
}

View File

@@ -8,6 +8,7 @@ interface BotInfo {
icon: string;
id: string;
modelId: string;
name?: string;
modelOptions: {
maxMessageCount: number;
maxReplyLength: number;