| | |
| | | } |
| | | }, |
| | | 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 () { |
| | | }, |
| | |
| | | _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')) |
| | | }) |