[测评系统]--前端(用户答题页面)
src/views/demography/index.vue
@@ -113,12 +113,24 @@
    }
  },
  created () {
    const langType = localStorage.getItem('langType')
    if (langType) {
      this.setLangType(langType)
    } else {
      localStorage.setItem('langType', this.langType)
    }
  },
  beforeDestroy () {
    localStorage.removeItem('langType')
  },
  beforeUpdate () {
  },
  updated () {
  },
  methods: {
    submitDemography: function () {
      let _this = this
      _this.submitDisable = true
      console.log( this.$refs.demographyMenber)
      this.$refs.demographyMenber.validate(vaild => {
        if (vaild) {
          _this.parasInfos = []
@@ -192,7 +204,8 @@
      })
    },
    ...mapMutations('user', ['setMemberTocken']),
    ...mapMutations('exam', ['setDoUrl'])
    ...mapMutations('exam', ['setDoUrl']),
    ...mapMutations('user', ['setLangType'])
  },
  computed: {
    ...mapState('user', { memberToken: state => state.memberToken }),