From cc375e9578094716ec9dbd77e60a02c463de6853 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Mon, 15 Jul 2019 18:27:16 +0800 Subject: [PATCH] scroll --- public/react/src/modules/tpm/challengesnew/TPManswer2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/react/src/modules/tpm/challengesnew/TPManswer2.js b/public/react/src/modules/tpm/challengesnew/TPManswer2.js index b5e1b43a6..ef850994d 100644 --- a/public/react/src/modules/tpm/challengesnew/TPManswer2.js +++ b/public/react/src/modules/tpm/challengesnew/TPManswer2.js @@ -174,6 +174,9 @@ export default class TPManswer extends Component { if (response.data.message) { this.props.showSnackbar(response.data.message); } + if (response.data.status == 1) { + $("html").animate({ scrollTop: 0 }) + } } }).catch((error) => {