diff --git a/src/apps/AppAskForm/formDetail.vue b/src/apps/AppAskForm/formDetail.vue index a870514c..ae925a9e 100644 --- a/src/apps/AppAskForm/formDetail.vue +++ b/src/apps/AppAskForm/formDetail.vue @@ -239,32 +239,8 @@ export default { }) }) } else { - this.getUserInfo().then(res => { - 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 { - this.result = { - tips: "您的信息获取失败", - status: "error", - btn: "重新加载", - btnTap() { - location.reload() - } - } - } - }).catch() + let {corpId} = this.$route.query + this.getCode({corpId, url: location.href}) } }, },