this.props.showDrawer()} >
diff --git a/public/react/src/modules/question/component/SingleEditor.js b/public/react/src/modules/question/component/SingleEditor.js
index 464eb19e0..fab9170b8 100644
--- a/public/react/src/modules/question/component/SingleEditor.js
+++ b/public/react/src/modules/question/component/SingleEditor.js
@@ -140,7 +140,13 @@ class SingleEditor extends Component{
// this.refs['titleEditor'].showError()
this.props.showNotification('请您输入题干');
return editordata;
+ }else{
+ console.log("question_titleysl");
+ console.log(question_titleysl);
}
+
+
+
for(let i = 0; i < question_choices.length; i++) {
if (!question_choices[i]) {
// this.refs[`optionEditor${i}`].showError()
@@ -244,6 +250,7 @@ class SingleEditor extends Component{
this.setState({ standard_answers })
}
onOptionContentChange = (value,quill,index) => {
+ debugger
if (index >= this.state.question_choices.length) {
// TODO 新建,然后删除CD选项,再输入题干,会调用到这里,且index是3
return;
@@ -251,18 +258,9 @@ class SingleEditor extends Component{
var texts;
const _text = quill.getText();
const reg = /^[\s\S]*.*[^\s][\s\S]*$/;
-
-
- if(this.isNull(_text)===true){
- return
- }
if (!reg.test(_text)) {
// 处理编辑器内容为空
- try {
- texts= JSON.stringify(value)
- }catch (e) {
texts="";
- }
} else {
if(_text.length>=500){
var result = _text.substring(0,450);
@@ -315,61 +313,47 @@ class SingleEditor extends Component{
const reg = /^[\s\S]*.*[^\s][\s\S]*$/;
-
- if(this.isNull(_text)===true){
- this.setState({
- question_titleysl:""
- })
- return
- }
-
-
-
if (!reg.test(_text)) {
// 处理编辑器内容为空
- try {
- this.setState({
- question_titleysl: JSON.stringify(value)
- })
- }catch (e) {
this.setState({
question_titleysl:""
})
- }
} else {
+ try {
let texts = JSON.stringify(value);
- this.setState({
- question_titleysl:texts
- })
+ this.setState({
+ question_titleysl:texts===undefined|| null?"":texts
+ })
+ }catch (e) {
+ this.setState({
+ question_titleysl:""
+ })
+ }
}
}
onContentChanges=(value,quill)=>{
const _text = quill.getText();
const reg = /^[\s\S]*.*[^\s][\s\S]*$/;
- if(this.isNull(_text)===true){
- this.setState({
- question_titlesysl:""
- })
- return
- }
+
if (!reg.test(_text)) {
// 处理编辑器内容为空
+ this.setState({
+ question_titlesysl:""
+ })
+ } else {
try {
+ let texts = JSON.stringify(value);
this.setState({
- question_titlesysl:JSON.stringify(value)
+ question_titlesysl:texts===undefined|| null?"":texts
})
}catch (e) {
this.setState({
question_titlesysl:""
})
}
- } else {
- let texts = JSON.stringify(value);
- this.setState({
- question_titlesysl:texts
- })
+
}
}
handleShowImage = (url) => {
diff --git a/public/react/src/modules/question/questioncss/questioncom.css b/public/react/src/modules/question/questioncss/questioncom.css
index 3fee3fc1e..d5ac90d12 100644
--- a/public/react/src/modules/question/questioncss/questioncom.css
+++ b/public/react/src/modules/question/questioncss/questioncom.css
@@ -271,6 +271,12 @@
width:30%;
}
+.w80s{
+ width:80%;
+}
+.w20s{
+ width:20%;
+}
.w50s{
width: 50%;
@@ -323,7 +329,7 @@
.listjihetixingstitsy {
color: #333333;
font-size: 14px;
- line-height: 20px !important;
+ line-height: 25px !important;
height: 25px !important;
}
@@ -413,10 +419,10 @@
color: #4CACFF;
}
.xiaoshou{
- cursor:pointer;
+ cursor:pointer !important;
}
.xiaoshout{
- cursor:default;
+ cursor:default !important;
}
.mt40{
margin-top: 40px;
@@ -913,7 +919,7 @@
width: 40px !important;
position: absolute;
border-radius: 4px;
- top: -50%;
+ top: -79%;
}
.shitikussmys{
width:29px !important;
@@ -1112,3 +1118,27 @@
.text-indents50{
text-indent: 50px
}
+.typesBtn{
+ padding:0px 10px;
+ height:24px;
+ line-height:24px;
+ border-radius:2px;
+ margin-right:10px;
+ font-size: 13px;
+}
+.typeGreen{
+ color:#15DB7A;
+ border:1px solid #15DB7A;
+}
+.typeBlue{
+ color:#0CB9F1;
+ border:1px solid #0CB9F1;
+}
+.typeRed{
+ color:#FF5555;
+ border:1px solid #FF5555;
+}
+.typeYellow{
+ color:#FFB538;
+ border:1px solid #FFB538;
+}
diff --git a/public/react/src/modules/testpaper/Intecomponents.js b/public/react/src/modules/testpaper/Intecomponents.js
index 8776b6a9e..ce5040821 100644
--- a/public/react/src/modules/testpaper/Intecomponents.js
+++ b/public/react/src/modules/testpaper/Intecomponents.js
@@ -282,6 +282,34 @@ class Intecomponents extends Component {
}
preservation = () => {
+
+ let mylistcour=1;
+ try {
+ mylistcour=this.state.single_question_count+this.state.multiple_question_count+this.state.judgement_question_count+this.state.program_question_count
+ }catch (e) {
+
+ }
+ if(mylistcour===0){
+ this.props.showNotification(`没有题不能组卷`);
+ return;
+ }
+
+ let arraycour=1;
+ try {
+ arraycour=this.Judquestio.Getdatas()[3].rbdxt+this.Judquestio.Getdatas()[4].rbdxtx+ this.Judquestio.Getdatas()[5].rbpdt+this.Judquestio.Getdatas()[6].rbbct
+
+ }catch (e) {
+
+ }
+
+ if(arraycour===0){
+ this.props.showNotification(`没有设置题型及数量不能组卷`);
+ return;
+ }
+
+
+
+
if (this.Judquestio.Getdatas().length === 0) {
this.scrollToAnchor("Itembankstopid");
return;
diff --git a/public/react/src/modules/testpaper/component/Contentpart.js b/public/react/src/modules/testpaper/component/Contentpart.js
index 5148e00ca..f5c0a5cb4 100644
--- a/public/react/src/modules/testpaper/component/Contentpart.js
+++ b/public/react/src/modules/testpaper/component/Contentpart.js
@@ -73,7 +73,7 @@ class Contentpart extends Component {
}
//跳转人工组卷
Mantegeneration=()=>{
- this.props.history.push('/question');
+ this.props.history.push('/problemset');
}
@@ -368,18 +368,24 @@ class Contentpart extends Component {
:""
}
diff --git a/public/react/src/modules/testpaper/component/Paperlibraryseeid_item.js b/public/react/src/modules/testpaper/component/Paperlibraryseeid_item.js
index 06298299f..58959d745 100644
--- a/public/react/src/modules/testpaper/component/Paperlibraryseeid_item.js
+++ b/public/react/src/modules/testpaper/component/Paperlibraryseeid_item.js
@@ -286,7 +286,7 @@ class Paperreview_item extends Component {
}
jixuxuantioncli = () => {
- this.props.history.replace("/question");
+ this.props.history.replace("/problemset");
}
showparagraphs = (e,name) => {
diff --git a/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js b/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js
index 754a45560..2cdc60623 100644
--- a/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js
+++ b/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js
@@ -361,7 +361,7 @@ class Paperlibraryseeid_itemss extends Component {
}
jixuxuantioncli = () => {
- this.props.history.replace("/question");
+ this.props.history.replace("/problemset");
}
showparagraphs = (e,name) => {
diff --git a/public/react/src/modules/testpaper/component/Seeoagertits.js b/public/react/src/modules/testpaper/component/Seeoagertits.js
index a983bd67e..573655a63 100644
--- a/public/react/src/modules/testpaper/component/Seeoagertits.js
+++ b/public/react/src/modules/testpaper/component/Seeoagertits.js
@@ -26,7 +26,7 @@ class Seeoagertit extends Component {
onChange=(e)=> {
}
jixuxuantioncli = () => {
- this.props.history.replace("/question");
+ this.props.history.replace("/problemset");
}
render() {
diff --git a/public/react/src/modules/testpaper/testioncss/testioncss.css b/public/react/src/modules/testpaper/testioncss/testioncss.css
index 56c2e36c0..8c9597ed0 100644
--- a/public/react/src/modules/testpaper/testioncss/testioncss.css
+++ b/public/react/src/modules/testpaper/testioncss/testioncss.css
@@ -400,13 +400,13 @@
color: #4CACFF;
}
.xiaoshou{
- cursor:pointer;
+ cursor:pointer !important;
}
.xiaoshout{
- cursor:default;
+ cursor:default !important;
}
.shubiao{
- cursor:default;
+ cursor:default !important;
}
.mt40{
margin-top: 40px;
diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js
index dccdbc5a7..99018567c 100644
--- a/public/react/src/modules/tpm/NewHeader.js
+++ b/public/react/src/modules/tpm/NewHeader.js
@@ -1075,21 +1075,21 @@ submittojoinclass=(value)=>{
`
}
- {
- Periofters===true?
-
-
-
-
-
- :""
- }
+ {/*{*/}
+ {/* Periofters===true?*/}
+ {/*
*/}
+ {/* */}
+ {/* */}
+ {/*
*/}
+ {/* 题库*/}
+ {/*
*/}
+ {/*
*/}
+ {/* */}
+ {/* */}
+ {/* :""*/}
+ {/*}*/}
{
{/* p 老师 l 学生 */}
{shixuntype===true?"":我的实训项目}
{pathstype===true?"":
{this.props.user&&this.props.user.main_site===false?"我的课程":"我的实践课程"}}
- {this.props.user&&this.props.user.main_site===true?
我的开发项目:""}
+ {this.props.user&&this.props.user.main_site===true?
我的开发项目:""}
+ { Periofters === true &&
我的试题库 }
+ { Periofters === true &&
我的试卷库 }
{/*
我的众包*/}
客户管理
diff --git a/public/react/src/modules/tpm/TPMIndex.css b/public/react/src/modules/tpm/TPMIndex.css
index 4f19260aa..2ec090e7d 100644
--- a/public/react/src/modules/tpm/TPMIndex.css
+++ b/public/react/src/modules/tpm/TPMIndex.css
@@ -268,7 +268,7 @@ body>.-task-title {
background: #EEEEEE;
}
.mystask-sidebar{
- right: 220px !important;
+ right: 181px !important;
}
.mystask-sidebars{
right: 20px !important;
diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js
index 9ba60c27a..a5da90e2c 100644
--- a/public/react/src/modules/tpm/TPMIndexHOC.js
+++ b/public/react/src/modules/tpm/TPMIndexHOC.js
@@ -769,7 +769,7 @@ export function TPMIndexHOC(WrappedComponent) {
{...this.dialogObj}
/>:""}
{
- mypath&&mypath==="/question"?
+ mypath&&mypath==="/problemset"?
""
:
{
if (file.response) {
if (file.response.status===0) {
-
}
}
return file;
@@ -73,45 +75,54 @@ class RepositoryAddFileupload_files extends Component {
};
onAttachmentRemove=(info)=>{
- let shixunId = this.props.match.params.shixunId;
- let {message,filspath}=this.state;
- if(message===""||message===undefined){
- this.props.showNotification('删除文件请先填写提交信息');
- return
- }
+ console.log(info);
+ if(info.response){
+ let shixunId = this.props.match.params.shixunId;
+ let {message,filspath}=this.state;
+ if(message===""||message===undefined){
+ this.props.showNotification('删除文件请先填写提交信息');
+ return;
+ }
- let matchpath =this.props.match.path;
+ let matchpath =this.props.match.path;
- let Repositoryflag =undefined;
+ let Repositoryflag =undefined;
- if( matchpath.indexOf("repository")>-1){
- Repositoryflag =undefined;
- }
- if(matchpath.indexOf("secret_repository")>-1){
- Repositoryflag =true;
- }
+ if( matchpath.indexOf("repository")>-1){
+ Repositoryflag =undefined;
+ }
+ if(matchpath.indexOf("secret_repository")>-1){
+ Repositoryflag =true;
+ }
- let newfilspath=filspath;
+ let newfilspath=filspath;
- if(newfilspath===""){
- newfilspath=info.name
- }else{
- newfilspath=filspath+"/"+info.name
- }
- const url = `/shixuns//${shixunId}/delete_git_file.json`;
- axios.delete(url, { data: {
+ if(newfilspath===""){
+ newfilspath=info.name
+ }else{
+ newfilspath=filspath+"/"+info.name
+ }
+ const url = `/shixuns//${shixunId}/delete_git_file.json`;
+ axios.delete(url, { data: {
path:newfilspath,
message:message,
secret_repository:Repositoryflag
}})
.then((response) => {
- if (response.data.status == 0) {
- this.props.showNotification("删除成功")
+ if (response.data.status === 0) {
+ let fileList = this.state.fileList.filter(item=>item.uid !== info.uid);
+ this.setState({
+ fileList
+ })
+ this.props.showNotification("删除成功");
}
})
.catch(function (error) {
console.log(error);
});
+ }else{
+ this.props.showNotification("还未上传完成,无法进行删除操作!");
+ }
}
FormInput=(e)=>{
@@ -195,7 +206,7 @@ class RepositoryAddFileupload_files extends Component {
return false
}
- this.props.showNotification("上传成功")
+ // this.props.showNotification("上传成功");
},
};
diff --git a/public/react/src/redux/actions/ojForUser.js b/public/react/src/redux/actions/ojForUser.js
index 87c877fa5..a5650d481 100644
--- a/public/react/src/redux/actions/ojForUser.js
+++ b/public/react/src/redux/actions/ojForUser.js
@@ -1,17 +1,17 @@
/*
- * @Description:
+ * @Description:
* @Author: tangjiang
- * @Github:
+ * @Github:
* @Date: 2019-11-27 13:42:11
* @LastEditors : tangjiang
* @LastEditTime : 2020-02-10 18:17:00
*/
import types from "./actionTypes";
import { Base64 } from 'js-base64';
-import {
+import {
fetchStartProgram,
fetchUserProgramDetail,
- fetchDebuggerCode,
+ fetchDebuggerCode,
fetchCodeSubmit,
fetchUserCommitRecord,
fetchUserCommitRecordDetail,
@@ -26,7 +26,6 @@ import { notification } from "antd";
export const startProgramQuestion = (id, props) => {
return (dispatch, getState) => {
const {searchParams} = getState().ojFormReducer;
- console.log(searchParams);
fetchStartProgram(id).then(res => {
const { status, data } = res;
if (status === 200) {
@@ -50,7 +49,7 @@ export const startProgramQuestion = (id, props) => {
// console.log(path);
// props.history.push(`/myproblems/${identifier}`);
props.history.push({
- pathname: `/myproblems/${identifier}?${searchParams}`,
+ pathname: `/myproblems/${identifier}`,
});
}
}
@@ -90,7 +89,7 @@ export const getUserProgramDetail = (identifier, type) => {
type: types.SAVE_USE_TEST_CASE_VALUE,
payload: data.test_case || {}
});
- // 代码是否更新
+ // 代码是否更新
let _modify_code = false;
if (data.hack) {
_modify_code = data.hack.modify_code;
@@ -145,7 +144,7 @@ export const saveUserCodeForInterval = (identifier, code) => {
/**
* @description 保存或更新之前先更新代码
- * @param {*} identifier
+ * @param {*} identifier
* @param {*} inputValue 输入值: 自定义 | 系统返回的
* @param {*} type 测评类型 debug | submit
*/
@@ -157,7 +156,7 @@ export const updateCode = (identifier, inputValue, type) => {
fetchUpdateCode(identifier, {
code: Base64.encode(userCode)
}).then(res => {
- // 是否更新了代码, 目的是当代码没有更新时不调用更新代码接口,目录没有实现
+ // 是否更新了代码, 目的是当代码没有更新时不调用更新代码接口,目录没有实现
// TODO 需要优化
if (res.data.status === 401) {
dispatch({ // 改变 loading 值
@@ -187,7 +186,7 @@ export const codeEvaluate = (dispatch, identifier, type, time_limit, hackStatus,
let count = 1;
/**
* @param {*} excuteTime 执行时间
- * @param {*} finalTime 总时间
+ * @param {*} finalTime 总时间
* @param {*} count 执行次数
* @param {*} timer 定时器
*/
@@ -199,7 +198,7 @@ export const codeEvaluate = (dispatch, identifier, type, time_limit, hackStatus,
if (+status === 0 || (excuteTime / 1000) > (finalTime + 1)) {
clearInterval(timer); // 清除定时器
timer = null;
- let returnData = null;
+ let returnData = null;
if (status === 1) { // 结果没有返回
returnData = {
error_line: -1,
@@ -221,7 +220,7 @@ export const codeEvaluate = (dispatch, identifier, type, time_limit, hackStatus,
payload: {
type,
data: returnData
- }
+ }
});
if (!type || type === 'debug') {
dispatch({ // 改变 loading 值
@@ -287,13 +286,13 @@ export const codeEvaluate = (dispatch, identifier, type, time_limit, hackStatus,
/**
* @description 调试代码
- * @param {*} identifier
+ * @param {*} identifier
* @param {*} inputValue 输入值: 自定义 | 系统返回的
* @param {*} type 测评类型 debug | submit
*/
export const debuggerCode = (identifier,value, type) => {
return (dispatch, getState) => {
- // 调用之前 先保存 code
+ // 调用之前 先保存 code
// TODO
// console.log(identifier, value);
const { hack } = getState().ojForUserReducer;
@@ -398,7 +397,7 @@ export const changeUserCodeTab = (key) => {
/**
* @description 用户提交代码, 先调用保存代码接口,再调提交接口,成功后调用调试接口
- * @param {*} identifier
+ * @param {*} identifier
*/
export const submitUserCode = (identifier, inputValue, type) => {
return (dispatch, getState) => {
@@ -430,7 +429,7 @@ export const submitUserCode = (identifier, inputValue, type) => {
fetchUpdateCode(identifier, {
code: userCode
}).then(res => {
- // 是否更新了代码, 目的是当代码没有更新时不调用更新代码接口,目录没有实现
+ // 是否更新了代码, 目的是当代码没有更新时不调用更新代码接口,目录没有实现
// TODO 需要优化
if (res.data.status === 401) {
dispatch({
@@ -495,7 +494,7 @@ export const saveOpacityType = (type) => {
type: types.CLICK_OPERATE_TYPE,
payload: type
}
-}
+}
export const clearOjForUserReducer = () => {
diff --git a/public/react/src/redux/actions/ojForm.js b/public/react/src/redux/actions/ojForm.js
index e6fe1309e..25e5bb43d 100644
--- a/public/react/src/redux/actions/ojForm.js
+++ b/public/react/src/redux/actions/ojForm.js
@@ -1,14 +1,14 @@
/*
* @Description: 开发者社区编辑模块
* @Author: tangjiang
- * @Github:
+ * @Github:
* @Date: 2019-11-20 16:35:46
* @LastEditors : tangjiang
* @LastEditTime : 2020-02-11 16:29:32
*/
import types from './actionTypes';
import CONST from '../../constants';
-import {
+import {
fetchPostOjForm,
fetchGetOjById,
publishTask,
@@ -18,7 +18,7 @@ import {
} from '../../services/ojService';
import { Base64 } from 'js-base64';
import { notification } from 'antd';
-import { toStore } from 'educoder';
+import { toStore } from 'educoder';
// import { startProgramQuestion } from ''
const { jcLabel } = CONST;
// 表单字段映射
@@ -124,7 +124,7 @@ export const validateOjForm = (props, type, cb) => {
hasSuccess = false;
dispatch(
{
- type: maps[key].type,
+ type: maps[key].type,
payload: payloadInfo(key, value, errMsg, validateResult[key])
}
)
@@ -142,7 +142,7 @@ export const validateOjForm = (props, type, cb) => {
let validateResult = emptyValidate(key, value);
const errMsg = validateResult[key].errMsg;
if (errMsg) {
- hasSuccess = false;
+ // hasSuccess = false;
} else {
// 唯一性校验
const bool = testCases.some((item, j) => {
@@ -154,7 +154,7 @@ export const validateOjForm = (props, type, cb) => {
});
if (bool) {
- hasSuccess = false;
+ // hasSuccess = false;
validateResult = {
[key]: {
validateStatus: 'error',
@@ -168,14 +168,14 @@ export const validateOjForm = (props, type, cb) => {
tcValidResult.push(tempObj);
});
- if (testCases.length === 0) {
- hasSuccess = false;
- notification['error']({
- message: '提示',
- description: '测试用例必须输入!'
- });
- }
-
+ // if (testCases.length === 0) {
+ // hasSuccess = false;
+ // notification['error']({
+ // message: '提示',
+ // description: '测试用例必须输入!'
+ // });
+ // }
+
// if (!code) {
// hasSuccess = false;
// notification['error']({
@@ -300,7 +300,7 @@ export const validateOjForm = (props, type, cb) => {
cb && cb();
} else {
const {identifier} = res.data;
-
+
// message.success(paramsObj['submitType'] === 'update' ? '更新成功' : '保存成功');
notification.success({
message: '提示',
@@ -311,7 +311,7 @@ export const validateOjForm = (props, type, cb) => {
type: types.SAVE_OJ_FORM_ID,
payload: identifier
});
-
+
// console.log(identifier , props.identifier);
if (identifier || props.identifier) {
dispatch(getOJFormById(identifier || props.identifier));
@@ -443,7 +443,7 @@ export const saveOjFormCode = (value) => {
payload: value
};
}
-// 验证任务名称
+// 验证任务名称
export const validateOJName = (value) => {
const validate = emptyValidate('name', value)['name'];
const errMsg = validate.errMsg;
@@ -735,9 +735,9 @@ export const saveKnowledge = (values) => {
}
/**
- * 新增时跳转到OJ时带的默认参数:
- * @param {}} params
- * {
+ * 新增时跳转到OJ时带的默认参数:
+ * @param {}} params
+ * {
* difficult: '', // 难易度
* sub_discipline_id: '' // 课程方向
* tag_discipline_id: [] 知识点
@@ -767,7 +767,7 @@ export const tagDisciplines = (params) => {
}
});
}
-}
+}
// 保存地址栏参数
export const saveSearchParams = (params) => {
diff --git a/public/react/src/redux/actions/static.js b/public/react/src/redux/actions/static.js
index 3159d35c2..2c57479fb 100644
--- a/public/react/src/redux/actions/static.js
+++ b/public/react/src/redux/actions/static.js
@@ -12,14 +12,15 @@ import { fetchStaticList } from "../../services/staticService";
export const staticList = (id) => {
return (dispatch, getState) => {
const { params, total_count, other_info } = getState().staticReducer;
-
- if (total_count !== 0 && total_count === other_info.length) return;
+ console.log('统计数据=====>>>>>', params);
+ // if (total_count !== 0 && total_count === other_info.length) return;
fetchStaticList(id, params).then(res => {
// console.log('统计数据=====>>>>>', res);
const {data} = res;
if (data.status === 0) {
dispatch({
type: types.GET_STATIC_INFO,
+ other_info:data.data.other_info,
payload: data.data
});
}
diff --git a/public/react/src/redux/reducers/staticReducer.js b/public/react/src/redux/reducers/staticReducer.js
index 7d2202d03..3790b2638 100644
--- a/public/react/src/redux/reducers/staticReducer.js
+++ b/public/react/src/redux/reducers/staticReducer.js
@@ -38,12 +38,14 @@ const initalState = {
const staticReducer = (state = initalState, action) => {
const { payload = {}, type } = action;
const {subject_info, other_info = [], total = {}, total_count} = payload;
+
switch (type) {
case types.GET_STATIC_INFO:
return {
...state,
subject_info,
- other_info: state.other_info.concat(other_info),
+ other_info,
+ // other_info: state.other_info.concat(other_info),
total,
total_count,
params: Object.assign({}, state.params, { page: state.params.page + 1 })
diff --git a/public/react/src/services/ojService.js b/public/react/src/services/ojService.js
index 806364ef4..53d55f3f2 100644
--- a/public/react/src/services/ojService.js
+++ b/public/react/src/services/ojService.js
@@ -1,7 +1,7 @@
/*
* @Description: 开发者社区接口
* @Author: tangjiang
- * @Github:
+ * @Github:
* @Date: 2019-11-20 10:55:38
* @LastEditors : tangjiang
* @LastEditTime : 2020-01-07 15:23:19
@@ -34,7 +34,7 @@ export async function fetchPostOjForm (paramsObj) {
// if (identifier) {
// return axios.post(url, params);
// } else {
- // return
+ // return
// }
return identifier ? axios.put(url, params) : axios.post(url, params);
}
@@ -136,7 +136,7 @@ export async function fetchUploadImage (file) {
export async function fetchUploadImageUrl (id) {
const url = `/attachments/${id}`;
return axios.get(url);
-}
+}
// 添加笔记
export async function fetchAddNotes (identifier, params) {