金民工程登录完成,缺少跳转url

This commit is contained in:
2023-02-21 17:22:56 +08:00
parent 1f050440d0
commit 4f3a43885d

View File

@@ -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>