forked from Gitlink/forgeplus-react
新建文件-加密content
This commit is contained in:
parent
cf6be69846
commit
2f9db85ccc
|
@ -4,6 +4,7 @@ import { Form, Input, Button, Radio, Icon, Spin } from "antd";
|
|||
import { Link } from "react-router-dom";
|
||||
import "./index.css";
|
||||
import { turnbar , returnbar } from 'educoder';
|
||||
import { Base64 } from 'js-base64';
|
||||
|
||||
import axios from "axios";
|
||||
const TextArea = Input.TextArea;
|
||||
|
@ -63,7 +64,7 @@ class UserSubmitComponent extends Component {
|
|||
filepath: filename ? filename : path,
|
||||
branch: returnbar(branch),
|
||||
new_branch: submitType === "1" ? values.branchname : undefined,
|
||||
content,
|
||||
content:Base64.encode(content),
|
||||
message: values.desc,
|
||||
})
|
||||
.then((result) => {
|
||||
|
|
Loading…
Reference in New Issue