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 + }, } });