fix(widget): 修复用户信息保存条件并传递翻译函数
修复 store 中用户信息保存逻辑,仅在表单字段实际变化时保存,避免不必要的 localStorage 写入。同时向回复编辑器传递翻译函数以支持国际化。
This commit is contained in:
@@ -303,6 +303,7 @@ export class CommentItem extends Component {
|
||||
onCancel: () => this.handleCancelReply(),
|
||||
onClearError: () => this.handleClearReplyError(),
|
||||
placeholder: this.props.replyPlaceholder,
|
||||
t: this.t
|
||||
});
|
||||
this.replyEditor.render();
|
||||
this.replyEditor.focus();
|
||||
|
||||
Reference in New Issue
Block a user