- MVP架构重构聊天逻辑

- 优化聊天气泡体验
- 修复prompt bug
- 实现聊天次数限制功能(未接服务端)
- 实现情绪切视频功能
This commit is contained in:
2025-08-27 16:12:19 +08:00
parent 9004f77e8d
commit e57818d498
27 changed files with 1713 additions and 687 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
export interface Dialog {
isPlayer: boolean;
content: string;
isLoading?: boolean;
}
export class DemoData {
@@ -10,9 +11,9 @@ export class DemoData {
this.Dialogs = [];
}
public pushDialog(isPlayer: boolean, str: string) {
public pushDialog(isPlayer: boolean, str: string, isLoading: boolean = false) {
if (!this.Dialogs) this.Dialogs = [];
this.Dialogs.push({ isPlayer: isPlayer, content: str });
this.Dialogs.push({ isPlayer: isPlayer, content: str, isLoading: isLoading });
}
public GetDialogs() {