dev_forum
ysl 6 years ago
parent 811bd748ce
commit e3e5db246c

@ -114,6 +114,7 @@ export function initAxiosInterceptors(props) {
notification.open({ notification.open({
message:"提示", message:"提示",
description: response.data.message || '服务器异常,请联系管理员。', description: response.data.message || '服务器异常,请联系管理员。',
}); });
// notification['error']({ // notification['error']({
// message:"提示", // message:"提示",

@ -2030,7 +2030,7 @@ class Studentshavecompletedthelist extends Component {
//===0 不包括主观题 //===0 不包括主观题
if (indexi === exercise_users.length) { if (indexi === exercise_users.length) {
//都没评论 不显示评论 //都没评论 不显示评论
if (response.data.poll_types.groups_count > 0) { if (response.data.exercise_types.groups_count > 0) {
// console.log("77771111111"); // console.log("77771111111");
//分班大于0显示分班 //分班大于0显示分班
//7ge //7ge
@ -2273,7 +2273,7 @@ class Studentshavecompletedthelist extends Component {
} else { } else {
//已经评论 //已经评论
// response.data.course_groups.length // response.data.course_groups.length
if (response.data.poll_types.groups_count > 0) { if (response.data.exercise_types.groups_count > 0) {
//显示分班 //显示分班
//8ge //8ge
this.setState({ this.setState({
@ -2546,7 +2546,7 @@ class Studentshavecompletedthelist extends Component {
//包括主观题 //包括主观题
if (indexi === exercise_users.length) { if (indexi === exercise_users.length) {
console.log("2548包含主观题不包含分班"); console.log("2548包含主观题不包含分班");
if (response.data.poll_types.groups_count> 0){ if (response.data.exercise_types.groups_count> 0){
this.setState({ this.setState({
data: datalist, data: datalist,
teacherlist: teacherlist, teacherlist: teacherlist,
@ -2837,7 +2837,7 @@ class Studentshavecompletedthelist extends Component {
} }
} else { } else {
console.log("2699包含主观题包含分班"); console.log("2699包含主观题包含分班");
if (response.data.poll_types.groups_count> 0) { if (response.data.exercise_types.groups_count> 0) {
this.setState({ this.setState({
data: datalist, data: datalist,
teacherlist: teacherlist, teacherlist: teacherlist,

@ -353,6 +353,7 @@ class LoginDialog extends Component {
} }
}).catch((error) => { }).catch((error) => {
console.log("356");
console.log(error) console.log(error)
}) })
} }

@ -331,18 +331,21 @@ class NewHeader extends Component {
} }
educoderlogin=()=>{ educoderlogin=()=>{
//退出账号 //退出账号
var url = `/accounts/logout.json`; this.setState({
isRender:true
axios.get((url)).then((result) => {
if(result!==undefined){
// this.setState({
// isRender:true
// })
window.location.href = "/";
}
}).catch((error) => {
console.log(error);
}) })
// var url = `/accounts/logout.json`;
//
// axios.get((url)).then((result) => {
// if(result!==undefined){
// // this.setState({
// // isRender:true
// // })
// window.location.href = "/";
// }
// }).catch((error) => {
// console.log(error);
// })
} }
onKeywordSearch = () => { onKeywordSearch = () => {

Loading…
Cancel
Save