提交 96c0eafd authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 7f43132c
...@@ -7,7 +7,7 @@ const actionMap = { ...@@ -7,7 +7,7 @@ const actionMap = {
rewrite: { name: '改写', prompt: '帮我改写以下文字内容:' }, rewrite: { name: '改写', prompt: '帮我改写以下文字内容:' },
expand: { name: '扩写', prompt: '帮我在以下文字内容基础上进行扩写:' }, expand: { name: '扩写', prompt: '帮我在以下文字内容基础上进行扩写:' },
abbreviate: { name: '缩写', prompt: '帮我缩写以下文字内容:' }, abbreviate: { name: '缩写', prompt: '帮我缩写以下文字内容:' },
summary: { name: '缩写', prompt: '帮我总结以下文字内容:' } summary: { name: '总结', prompt: '帮我总结以下文字内容:' }
} }
export default function AIWrite({ editor, docAction, ...rest }) { export default function AIWrite({ editor, docAction, ...rest }) {
...@@ -51,7 +51,7 @@ export default function AIWrite({ editor, docAction, ...rest }) { ...@@ -51,7 +51,7 @@ export default function AIWrite({ editor, docAction, ...rest }) {
wrapper: 'editor-wrapper-customer' wrapper: 'editor-wrapper-customer'
}}> }}>
<Spin spinning={isLoading}> <Spin spinning={isLoading}>
<TextArea autoSize={{ minRows: 4 }} value={content} onChange={e => setContent(e.target.value)} /> <TextArea autoSize={{ minRows: 4 }} value={content} onChange={(e) => setContent(e.target.value)} />
</Spin> </Spin>
<br /> <br />
<Flex gap="small" justify="center"> <Flex gap="small" justify="center">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论