From 5d835b0989237260d5f52c8e90dd50842edf5b8d Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 26 May 2021 17:26:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=A8=A1=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Studentcommon/FictitiousList.vue | 2 +- src/components/common/Studentcommon/TeachingList.vue | 2 +- src/components/common/Studentcommon/competitionList.vue | 2 +- src/components/page/Assessment.vue | 2 +- src/components/page/ProjectPattern.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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) {