|
|
@@ -86,13 +86,15 @@
|
|
|
if (response.data.success) {
|
|
|
this.questions = response.data.content.questions
|
|
|
this.token = response.data.content.token
|
|
|
+ if (this.questions.length === 0) {
|
|
|
+ this.$emit('stepEvent', 'new')
|
|
|
+ }
|
|
|
} else {
|
|
|
this.downToast(response.data.errMsg)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
sureAccount (type) {
|
|
|
- // this.$emit('stepEvent', type)
|
|
|
if (this.state.answer1 !== 'success' && this.state.answer2 !== 'success') {
|
|
|
this.downToast('请确认填写部分是否有误')
|
|
|
} else {
|
|
|
@@ -112,13 +114,13 @@
|
|
|
}
|
|
|
this.$http.post(`/sso/resetPwd/check/question`, param, config)
|
|
|
.then(response => {
|
|
|
- this.isShowLoading = false
|
|
|
+ this.$indicator.close()
|
|
|
if (response.data.success) {
|
|
|
console.log(response.data, type)
|
|
|
- // this.$store.commit('login/GET_TOKEN', response.data.content.token)
|
|
|
- // this.$router.push({ path: '/reset/passwordResetNewPassword' })
|
|
|
+ this.$emit('stepEvent', type)
|
|
|
+ this.$emit('tokenEvent', response.data.content.token)
|
|
|
} else {
|
|
|
- return Promise.reject(response.data)
|
|
|
+ this.downToast(response.data.errMsg)
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
this.$indicator.close()
|