From d753764af48b7fba306dc16b5d6b78ea8b479317 Mon Sep 17 00:00:00 2001 From: kubbo <390378816@qq.com> Date: Tue, 21 Feb 2023 16:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E6=B0=91=E5=B7=A5=E7=A8=8B=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/jinmin/AppJinMinLogin.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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() {