| | |
| | | } from "./api"; |
| | | |
| | | export default { |
| | | created() { |
| | | mounted() { |
| | | this.getInitInfo(); |
| | | }, |
| | | data() { |
| | |
| | | if (this.active == 2) { |
| | | const data = this.$refs[`form${this.active}`].getFormData(); |
| | | await saveRegInfo(data); |
| | | location.assign("/login"); |
| | | location.assign("/view/login"); |
| | | return; |
| | | } |
| | | |
| | |
| | | if (res.data.initPwd && !res.data.initRegInfo) { |
| | | const res1 = await getRegInfo(); |
| | | this.active = 1; |
| | | this.$refs["carousel"].setActiveItem(1); |
| | | console.log(res1); |
| | | setTimeout(() => { |
| | | this.$refs["carousel"].setActiveItem(1); |
| | | }, 0); |
| | | } |
| | | |
| | | if (res.data.initPwd && res.data.initRegInfo) { |
| | | location.assign("/login"); |
| | | location.assign("/view/login"); |
| | | return; |
| | | } |
| | | |