金民工程登录页面

This commit is contained in:
2023-02-21 16:22:31 +08:00
parent 4a83f895d5
commit d753764af4

View File

@@ -21,18 +21,16 @@ export default {
}, },
methods: { methods: {
...mapActions(['getCode']), ...mapActions(['getCode']),
handleLogin(review) { handleLogin() {
const {code} = this.$route.query const {code} = this.$route.query
if (!this.user.token) { if (code) {
} else if (code) {
this.$http.post("/app/wxcp/portal/hljJmgcLogin", null, { this.$http.post("/app/wxcp/portal/hljJmgcLogin", null, {
params: {code} params: {code}
}).then(res => { }).then(res => {
console.log(res) console.log(res)
}) }).catch(() => this.err = "error")
} else if (!review) { } else this.getCode();
this.getCode();
} else this.err = "error"
} }
}, },
created() { created() {