From 7b32ae5c30be796a6c326f4842d6c8746d37a462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 17 Mar 2020 14:15:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=AE=A1=E7=AE=97=E6=97=B6?= =?UTF-8?q?=E9=97=B4=20=E6=97=B6=E9=97=B4=E9=95=BF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/shixunHomework/Listofworksstudentone.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index f6e82d396..fb9c244cd 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -2519,7 +2519,6 @@ class Listofworksstudentone extends Component { axios.get(url).then((response) => { if (response) { if (response.data.status === 0) { - setTimeout(() => { this.props.showNotification(`${response.data.message}`); // var homeworkid = this.props.match.params.homeworkid; this.Getalistofworks(homeworkid, false); @@ -2529,12 +2528,14 @@ class Listofworksstudentone extends Component { } catch (e) { } - }, 2500); } } // this.Getalistofworkstwo("", "", "", "", 1, 20); }).catch((error) => { console.log(error) + this.setState({ + computeTimetype:true + }) }); } @@ -3364,7 +3365,6 @@ class Listofworksstudentone extends Component { axios.get(url).then((response) => { if (response) { if (response.data.status === 0) { - setTimeout(() => { this.setState({ loadingstate: true }) @@ -3379,11 +3379,13 @@ class Listofworksstudentone extends Component { } catch (e) { } - }, 500); } } }).catch((error) => { console.log(error) + this.setState({ + computeTimetype:true + }) }); };