From 739b825618458507881fe396b4f3f1a11146d76f Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 26 Nov 2021 19:05:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=BC=80=E7=99=BB=E5=BD=95=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E6=AD=BB=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppAskForm/formDetail.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/apps/AppAskForm/formDetail.vue b/src/apps/AppAskForm/formDetail.vue index 5ed8d4bb..a870514c 100644 --- a/src/apps/AppAskForm/formDetail.vue +++ b/src/apps/AppAskForm/formDetail.vue @@ -240,8 +240,18 @@ export default { }) } else { this.getUserInfo().then(res => { - if (res == "getCode") { - this.getCode({url: location.href}) + if (this.$route.hash == "#loginfail") { + this.result = { + tips: "您的信息获取失败", + status: "error", + btn: "重新加载", + btnTap() { + location.reload() + } + } + } else if (res == "getCode") { + let {corpId} = this.$route.query + this.getCode({corpId, url: location.href}) } else if (!!this.openUser?.openId) { this.checkForm()?.then(() => this.checkUser && this.getForm()) } else {