- MVP架构重构聊天逻辑
- 优化聊天气泡体验 - 修复prompt bug - 实现聊天次数限制功能(未接服务端) - 实现情绪切视频功能
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user