diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 5acc8bf04..535b19a94 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -42,7 +42,7 @@ if (isDev) { // 老师 //debugType="teacher"; // 学生 - debugType="student"; +//debugType="student"; function railsgettimes(proxy) { @@ -149,15 +149,15 @@ export function initAxiosInterceptors(props) { } // // console.log(config); - // if (config.method === "post") { - // if (requestMap[config.url] === true) { // 避免重复的请求 导致页面f5刷新 也会被阻止 显示这个方法会影响到定制信息 - // // console.log(config); - // // console.log(JSON.parse(config)); - // // console.log(config.url); - // // console.log("被阻止了是重复请求================================="); - // return false; - // } - // } + if (config.method === "post") { + if (requestMap[config.url] === true) { // 避免重复的请求 导致页面f5刷新 也会被阻止 显示这个方法会影响到定制信息 + // console.log(config); + // console.log(JSON.parse(config)); + // console.log(config.url); + // console.log("被阻止了是重复请求================================="); + return false; + } + } // 非file_update请求 if (config.url.indexOf('update_file') === -1) { requestMap[config.url] = true; diff --git a/public/react/src/modules/courses/coursesPublic/Startshixuntask.js b/public/react/src/modules/courses/coursesPublic/Startshixuntask.js index 9b374a443..e983f332e 100644 --- a/public/react/src/modules/courses/coursesPublic/Startshixuntask.js +++ b/public/react/src/modules/courses/coursesPublic/Startshixuntask.js @@ -51,8 +51,7 @@ class Startshixuntask extends Component{ }, 1000) if(response.data.status!=401&&response.data.status!=403){ - const w=window.open('about:blank'); - w.location.href= "/tasks/"+response.data.game_identifier + window.open( `/tasks/${response.data.game_identifier}`) } } diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js index 92247c676..06f0e805d 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js @@ -388,6 +388,7 @@ class ShixunHomeworkPage extends Component { teacherdatapage === undefined ? "" : teacherdatapage.commit_des === null || teacherdatapage.commit_des === undefined ? "" : {teacherdatapage.commit_des} } {teacherdatapage === undefined ? "" :teacherdatapage&&teacherdatapage.shixun_status>1&&teacherdatapage&&teacherdatapage.time_status<5?
- 共发布实训 {TPMRightSectionData.user_shixuns_count} + 共发布实训 {TPMRightSectionData.user_shixuns_count}
{/*
*/} @@ -115,7 +115,7 @@ class TPMRightSection extends Component {
学习统计 - 已完成 {TPMRightSectionData&&TPMRightSectionData.complete_count===null?0:TPMRightSectionData&&TPMRightSectionData.complete_count} 个 / 共 {TPMRightSectionData&&TPMRightSectionData.challenge_count} 关 + 已完成 {TPMRightSectionData&&TPMRightSectionData.complete_count===null?0:TPMRightSectionData&&TPMRightSectionData.complete_count} 个 / 共 {TPMRightSectionData&&TPMRightSectionData.challenge_count} 关
@@ -131,7 +131,7 @@ class TPMRightSection extends Component {

技能标签 - 已获得 {TPMRightSectionData&&TPMRightSectionData.user_tag_count} 个 / 共 {TPMRightSectionData&&TPMRightSectionData.tag_count} 个 + 已获得 {TPMRightSectionData&&TPMRightSectionData.user_tag_count} 个 / 共 {TPMRightSectionData&&TPMRightSectionData.tag_count} 个

diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js index 5f559e317..0e701c00c 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js @@ -521,7 +521,7 @@ class Challenges extends Component {
全部任务 - + {/* */} {/**/}