diff --git a/src/components/common/Studentcommon/FictitiousList.vue b/src/components/common/Studentcommon/FictitiousList.vue index 21a7d80..f72e348 100644 --- a/src/components/common/Studentcommon/FictitiousList.vue +++ b/src/components/common/Studentcommon/FictitiousList.vue @@ -33,7 +33,7 @@ export default { data() { return { - pattern: Number(this.$store.state.pattern), + pattern: Number(sessionStorage.getItem('pattern')), totals: 0, tableData: [], userId: this.$store.state.userId, diff --git a/src/components/common/Studentcommon/TeachingList.vue b/src/components/common/Studentcommon/TeachingList.vue index bd21723..d29b283 100644 --- a/src/components/common/Studentcommon/TeachingList.vue +++ b/src/components/common/Studentcommon/TeachingList.vue @@ -45,7 +45,7 @@ export default { data() { return { - pattern: Number(this.$store.state.pattern), + pattern: Number(sessionStorage.getItem('pattern')), totals: 0, tableData: [], userId: this.$store.state.userId, diff --git a/src/components/common/Studentcommon/competitionList.vue b/src/components/common/Studentcommon/competitionList.vue index 281fc8f..262cf4b 100644 --- a/src/components/common/Studentcommon/competitionList.vue +++ b/src/components/common/Studentcommon/competitionList.vue @@ -35,7 +35,7 @@ export default { data() { return { - pattern: Number(this.$store.state.pattern), + pattern: Number(sessionStorage.getItem('pattern')), totals: 0, tableData: [], userId: this.$store.state.userId, diff --git a/src/components/page/Assessment.vue b/src/components/page/Assessment.vue index 7929721..5f0f202 100644 --- a/src/components/page/Assessment.vue +++ b/src/components/page/Assessment.vue @@ -98,7 +98,7 @@ export default { name: 'project', data() { return { - pattern: Number(this.$store.state.pattern), + pattern: Number(sessionStorage.getItem('pattern')), userId: this.$store.state.userId, roleId: this.$store.state.accountRole, name: sessionStorage.getItem('ms_username'), diff --git a/src/components/page/ProjectPattern.vue b/src/components/page/ProjectPattern.vue index 5071afa..1fbefa7 100644 --- a/src/components/page/ProjectPattern.vue +++ b/src/components/page/ProjectPattern.vue @@ -172,7 +172,7 @@ export default { this.$router.push('dashboard') }, toNext(index) { - this.$store.commit("patternData",{pattern: this.pattern}); + sessionStorage.setItem('pattern',this.pattern) this.$router.push(`dashboard#${index}`) }, async toEvaluation(type,btn) {