新建文件-加密content

This commit is contained in:
caishi 2022-12-08 15:08:43 +08:00
parent cf6be69846
commit 2f9db85ccc
1 changed files with 2 additions and 1 deletions

View File

@ -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) => {