diff --git a/public/react/src/modules/question/Question.js b/public/react/src/modules/question/Question.js index 0ce04d3ba..92e97161d 100644 --- a/public/react/src/modules/question/Question.js +++ b/public/react/src/modules/question/Question.js @@ -169,6 +169,8 @@ class Question extends Component { let {defaultActiveKey} = this.state; var defaultActiveKeys=defaultActiveKey; if(isysladmins===true||(is_teacher===true&&professional_certification===true)){ + defaultActiveKeys="0" + }else{ defaultActiveKeys="1" } diff --git a/public/react/src/modules/testpaper/Testpaperlibrary.js b/public/react/src/modules/testpaper/Testpaperlibrary.js index c2b536d26..0e8c362df 100644 --- a/public/react/src/modules/testpaper/Testpaperlibrary.js +++ b/public/react/src/modules/testpaper/Testpaperlibrary.js @@ -57,8 +57,11 @@ class Testpaperlibrary extends Component { let {defaultActiveKey} = this.state; var defaultActiveKeys=defaultActiveKey; if(isysladmins===true||(is_teacher===true&&professional_certification===true)){ + defaultActiveKeys="0" + }else{ defaultActiveKeys="1" } + this.setState({ defaultActiveKey:defaultActiveKeys })