From 3208433db43d7e5713f9aae16f6d8588727f7c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0?= <15071126431@163.com> Date: Sat, 8 May 2021 18:04:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Studentcommon/registration.vue | 3 ++- src/components/page/PersonalCenter.vue | 2 +- src/store/index.js | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/common/Studentcommon/registration.vue b/src/components/common/Studentcommon/registration.vue index cee8740..a9de5c0 100644 --- a/src/components/common/Studentcommon/registration.vue +++ b/src/components/common/Studentcommon/registration.vue @@ -40,7 +40,7 @@ export default { return { systemId: this.$store.state.systemId ? this.$store.state.systemId : this.$config.systemId, systemList: this.$config.systemList, - activeName: 'first', + activeName: this.$store.state.activeName ? this.$store.state.activeName : 'first', userId: this.$store.state.userId, tabs: { first: '练习', @@ -65,6 +65,7 @@ export default { }, tabChange(index){ this.activeName = index + this.$store.commit("activeNameData", { activeName : this.activeName}) }, } }; diff --git a/src/components/page/PersonalCenter.vue b/src/components/page/PersonalCenter.vue index 39cb4c2..7610873 100644 --- a/src/components/page/PersonalCenter.vue +++ b/src/components/page/PersonalCenter.vue @@ -123,7 +123,7 @@
证件 - +
diff --git a/src/store/index.js b/src/store/index.js index f783b1e..c844555 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -30,6 +30,7 @@ const store = new Vuex.Store({ systemId: '', token: '', dataTime: '', + activeName: 'first' }, mutations:{ courseIdData(state,payload){ @@ -97,6 +98,9 @@ const store = new Vuex.Store({ addProjectSystemIdData (state, payload) { state.systemId = payload.systemId }, + activeNameData (state, payload) { + state.activeName = payload.activeName + }, } });