金民工程登录完成,缺少跳转url
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<section class="AppJinMinLogin">
|
||||
<AiResult v-else :tips="errTip" :status="err" class="t-center"/>
|
||||
<AiResult :tips="errTip" :status="err" class="t-center"/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
@@ -24,16 +24,20 @@ export default {
|
||||
handleLogin() {
|
||||
const {code} = this.$route.query
|
||||
if (code) {
|
||||
this.$http.post("/app/wxcp/portal/hljJmgcLogin", null, {
|
||||
this.$http.post("/app/wxcp/portal/hljJmgcLogin2", null, {
|
||||
withoutToken: true,
|
||||
params: {code}
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if (res?.data?.data?.userId) {
|
||||
// location.replace()
|
||||
}
|
||||
}).catch(() => this.err = "error")
|
||||
} else this.getCode();
|
||||
|
||||
}
|
||||
},
|
||||
created() {
|
||||
onShow() {
|
||||
this.handleLogin()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user