observable fix

This commit is contained in:
Red Adaya 2024-05-08 07:10:04 +08:00
parent 8aaea9f1c8
commit de271d3873
3 changed files with 15208 additions and 1685 deletions

14710
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -160,6 +160,11 @@ class AIChat extends React.Component<{}, {}> {
textAreaRef: React.RefObject<HTMLTextAreaElement> = React.createRef(); textAreaRef: React.RefObject<HTMLTextAreaElement> = React.createRef();
termFontSize: number = 14; termFontSize: number = 14;
constructor(props) {
super(props);
mobx.makeObservable(this);
}
componentDidMount() { componentDidMount() {
const inputModel = GlobalModel.inputModel; const inputModel = GlobalModel.inputModel;
if (this.textAreaRef.current != null) { if (this.textAreaRef.current != null) {

2176
yarn.lock

File diff suppressed because it is too large Load Diff