fix: 修复重复闭合括号 + 清除未使用变量 refFile
This commit is contained in:
parent
ae61eba662
commit
3a184742dc
|
|
@ -142,8 +142,6 @@ export default function TemplateEditor() {
|
|||
? { start: selectionRef.current.start, end: selectionRef.current.end }
|
||||
: editingPoint?.position;
|
||||
|
||||
const refFile = values.ref_file?.fileList?.[0]?.originFileObj;
|
||||
|
||||
if (editingPoint) {
|
||||
const updateData: Record<string, unknown> = {};
|
||||
if (values.prompt) updateData.prompt = values.prompt;
|
||||
|
|
@ -162,8 +160,6 @@ export default function TemplateEditor() {
|
|||
selected_text: selectionRef.current?.text,
|
||||
need_ref_file: values.need_ref_file || false,
|
||||
remark: values.remark || "",
|
||||
});
|
||||
ref_file: refFile,
|
||||
});
|
||||
message.success("创建成功");
|
||||
selectionRef.current = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue