增加微信登录流程(需调整)
This commit is contained in:
@@ -125,7 +125,7 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['getUserInfo']),
|
||||
...mapActions(['getUserInfo', "getCode"]),
|
||||
getForm() {
|
||||
let {id} = this.$route.query
|
||||
this.$http.post("/app/appquestionnairetemplate/queryDetailById", null, {
|
||||
@@ -239,8 +239,10 @@ export default {
|
||||
})
|
||||
})
|
||||
} else {
|
||||
this.getUserInfo().then(() => {
|
||||
if (!!this.openUser?.openId) {
|
||||
this.getUserInfo().then(res => {
|
||||
if (res == "getCode") {
|
||||
this.getCode({url: location.href})
|
||||
} else if (!!this.openUser?.openId) {
|
||||
this.checkForm()?.then(() => this.checkUser && this.getForm())
|
||||
} else {
|
||||
this.result = {
|
||||
@@ -252,7 +254,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}).catch()
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user