[测评系统]--前端(用户答题页面)
yj
2024-11-18 0f3a72e00606a7626406fcd76f97098d99686481
src/views/demography/index.vue
@@ -113,15 +113,14 @@
    }
  },
  created () {
    const langType = localStorage.getItem('langType')
    if (langType) {
    const langType = this.$route.query.langType
    if (langType && (langType === 'Chinese' || langType === 'English' || langType === 'Thai')) {
      this.setLangType(langType)
    } else {
      localStorage.setItem('langType', this.langType)
      this.setLangType('English')
    }
  },
  beforeDestroy () {
    localStorage.removeItem('langType')
  },
  beforeUpdate () {
  },
@@ -158,7 +157,7 @@
                  _this.$router.push({ path: '/exam/' + _this.doUrl })
                  return
                }
                _this.$router.push({ path: '/guide/index', query: { formDo: _this.formDo } });
                _this.$router.push({ path: '/guide/index', query: { formDo: _this.formDo } })
              }).catch(e => {
                _this.$message.error(_this.$t('noquestionMsg'))
              })