|
@@ -5,7 +5,7 @@ import { mapGetters } from 'vuex'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
computed: {
|
|
computed: {
|
|
- ...mapGetters(['isFrontTeacher'])
|
|
|
|
|
|
+ ...mapGetters(['isFrontTeacher', 'isFrontStudent'])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// local data
|
|
// local data
|
|
@@ -124,7 +124,7 @@ export default {
|
|
examineeType: options.examineeType,
|
|
examineeType: options.examineeType,
|
|
questions: [commit]
|
|
questions: [commit]
|
|
}
|
|
}
|
|
- const scoreApi = this.isFrontTeacher ? teacherScoreExamineeQuestions : scoreExamineeQuestion
|
|
|
|
|
|
+ const scoreApi = this.isFrontStudent ? scoreExamineeQuestion : teacherScoreExamineeQuestions
|
|
scoreApi(singleCommit)
|
|
scoreApi(singleCommit)
|
|
.then(res => {
|
|
.then(res => {
|
|
// assign after succeed
|
|
// assign after succeed
|