diff --git a/src/project/jinmin/AppJinMinLogin.vue b/src/project/jinmin/AppJinMinLogin.vue index 5e56e517..9291ca5c 100644 --- a/src/project/jinmin/AppJinMinLogin.vue +++ b/src/project/jinmin/AppJinMinLogin.vue @@ -21,18 +21,16 @@ export default { }, methods: { ...mapActions(['getCode']), - handleLogin(review) { + handleLogin() { const {code} = this.$route.query - if (!this.user.token) { - } else if (code) { + if (code) { this.$http.post("/app/wxcp/portal/hljJmgcLogin", null, { params: {code} }).then(res => { console.log(res) - }) - } else if (!review) { - this.getCode(); - } else this.err = "error" + }).catch(() => this.err = "error") + } else this.getCode(); + } }, created() {