新建文件-内容加密

This commit is contained in:
caishi 2022-12-12 16:15:32 +08:00 committed by 何童崇
parent f8383b43c1
commit 16e408c9e8
2 changed files with 3 additions and 2 deletions

View File

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

View File

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