dev_aliyun2
杨树林 5 years ago committed by harry
parent 818236edbb
commit 7fe94de465

@ -1,7 +1,7 @@
/*
* @Description: 学员学习
* @Author: tangjiang
* @Github:
* @Github:
* @Date: 2019-11-23 10:53:19
* @LastEditors : tangjiang
* @LastEditTime : 2020-02-10 18:24:01
@ -45,7 +45,18 @@ function StudentStudy(props) {
// 保存当前的id
saveUserProgramIdentifier(id);
// startProgramQuestion(id);
getUserProgramDetail(id);
// console.log("getUserProgramDetail(id)");
// console.log(id);
// console.log(id.charAt(id.length-1));
try {
if(id.charAt(id.length-1)==="?"){
id = id.substring(0, id.length - 1);
}
}catch (e) {
}
getUserProgramDetail(id);
const $searchs = window.location.search && window.location.search.substring(1);
if ($searchs) {
const $params = $searchs.split('&') || [];
@ -107,7 +118,7 @@ function StudentStudy(props) {
props.clearOjForUserReducer();
props.history.push(`/problems/${identifier}/edit?{searchParams}`);
}
// 处理退出
// 处理退出
const handleClickQuit = () => {
// 退出时,清空内容
props.clearOjForUserReducer();
@ -179,7 +190,7 @@ const mapStateToProps = (state) => {
user_program_identifier,
hack_identifier,
searchParams
};
};
};
const mapDispatchToProps = (dispatch) => ({

@ -154,4 +154,4 @@ export async function fetchQuestion (params) {
export async function fetchTagDisciplines (params) {
const url = `/tag_disciplines.json`;
return axios.post(url, params);
}
}

Loading…
Cancel
Save