This commit is contained in:
caishi 2022-12-08 16:45:34 +08:00
parent 27d93bd964
commit 56ff7958b4
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ class Index extends Component {
language = {language}
content={undefined}
readOnly={false}
editorType="new"
editor_type="new"
descName={filename ? `Add ${filename}`:""}
checkName={checkName}
></Meditor>

View File

@ -64,7 +64,7 @@ class UserSubmitComponent extends Component {
filepath: filename ? filename : path,
branch: returnbar(branch),
new_branch: submitType === "1" ? values.branchname : undefined,
content:Base64.encode(content),
content:editor_type === "upload" ? content : Base64.encode(content),
message: values.desc,
})
.then((result) => {