From 2ba88385871769f597693821efbd5c1ce50f1a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 13 Mar 2020 22:40:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/courses/signin/student/Signindetails.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/react/src/modules/courses/signin/student/Signindetails.js b/public/react/src/modules/courses/signin/student/Signindetails.js index 151d00878..ecc8f6b4c 100644 --- a/public/react/src/modules/courses/signin/student/Signindetails.js +++ b/public/react/src/modules/courses/signin/student/Signindetails.js @@ -16,6 +16,9 @@ class Signindetails extends Component{ } componentDidMount() { + this.mygetdatas() + } + mygetdatas=()=>{ const switattendance_id=this.props.switattendance_id; let urls = `/weapps/attendances/${switattendance_id}.json`; axios.get(urls).then((response) => { @@ -33,6 +36,7 @@ class Signindetails extends Component{ }) } + componentDidUpdate = (prevProps) => { console.log("componentDidUpdate");