mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-18 10:39:20 +08:00
修复调试保存文件默认目录和任务视图创建
This commit is contained in:
@@ -272,7 +272,7 @@ const EditModal = ({
|
||||
content:
|
||||
editorRef.current &&
|
||||
editorRef.current.getValue().replace(/\r\n/g, '\n'),
|
||||
filename: cNode?.title,
|
||||
...cNode,
|
||||
}}
|
||||
/>
|
||||
<SettingModal
|
||||
|
||||
@@ -17,7 +17,7 @@ const SaveModal = ({
|
||||
|
||||
const handleOk = async (values: any) => {
|
||||
setLoading(true);
|
||||
const payload = { ...file, ...values, originFilename: file.filename };
|
||||
const payload = { ...file, ...values, originFilename: file.title };
|
||||
request
|
||||
.post(`${config.apiPrefix}scripts`, {
|
||||
data: payload,
|
||||
@@ -60,7 +60,7 @@ const SaveModal = ({
|
||||
form={form}
|
||||
layout="vertical"
|
||||
name="script_modal"
|
||||
initialValues={file}
|
||||
initialValues={{ filename: file?.title, path: file?.parent || '' }}
|
||||
>
|
||||
<Form.Item
|
||||
name="filename"
|
||||
|
||||
Reference in New Issue
Block a user