forked from Gitlink/forgeplus-react
新建文件-内容加密
This commit is contained in:
parent
f8383b43c1
commit
16e408c9e8
|
@ -25,7 +25,7 @@ if (isDev) {
|
|||
}
|
||||
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
|
||||
window.location.search.indexOf('debug=s') !== -1 ? 'student' :
|
||||
window.location.search.indexOf('debug=a') !== -1 ? 'a' : parsed.debug || ''
|
||||
window.location.search.indexOf('debug=a') !== -1 ? 'a' : parsed.debug || 'admin'
|
||||
}
|
||||
window._debugType = debugType;
|
||||
export function initAxiosInterceptors(props) {
|
||||
|
|
|
@ -6,6 +6,7 @@ import "./index.css";
|
|||
import { turnbar , returnbar } from 'educoder';
|
||||
|
||||
import axios from "axios";
|
||||
import { Base64 } from "js-base64";
|
||||
const TextArea = Input.TextArea;
|
||||
|
||||
class UserSubmitComponent extends Component {
|
||||
|
@ -63,7 +64,7 @@ class UserSubmitComponent extends Component {
|
|||
filepath: filename ? filename : path,
|
||||
branch: returnbar(branch),
|
||||
new_branch: submitType === "1" ? values.branchname : undefined,
|
||||
content,
|
||||
content:editor_type === "upload" ? content : Base64.encode(content),
|
||||
message: values.desc,
|
||||
})
|
||||
.then((result) => {
|
||||
|
|
Loading…
Reference in New Issue