forked from Gitlink/forgeplus-react
change
This commit is contained in:
parent
27d93bd964
commit
56ff7958b4
|
@ -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>
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue