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