remember current chat input

This commit is contained in:
josc146
2023-06-14 20:26:04 +08:00
parent 4b640f884b
commit 17c690dfb1
2 changed files with 11 additions and 7 deletions

View File

@@ -41,6 +41,7 @@ class CommonStore {
// home
introduction: IntroductionContent = manifest.introduction;
// chat
currentInput: string = '';
conversations: Conversations = {};
conversationsOrder: string[] = [];
// completion
@@ -182,6 +183,10 @@ class CommonStore {
setPlatform(value: Platform) {
this.platform = value;
}
setCurrentInput(value: string) {
this.currentInput = value;
}
}
export default new CommonStore();