remember current chat input
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user