From 1d5ed721196d06aa3adaeffdc93e27644603352b Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 15 Jul 2022 17:04:15 +0800 Subject: [PATCH] BUG 30545 --- src/mods/extra/AppAuth/authSuccess.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/mods/extra/AppAuth/authSuccess.vue b/src/mods/extra/AppAuth/authSuccess.vue index a44bbcf..5f9d5f1 100644 --- a/src/mods/extra/AppAuth/authSuccess.vue +++ b/src/mods/extra/AppAuth/authSuccess.vue @@ -38,17 +38,16 @@ export default { appName: "实名身份认证", data() { return { - status: '', info: {} } }, computed: { ...mapState(['user']), isSuccess() { - return this.status == 2 + return this.user.status == 2 }, isFail() { - return this.status?.toString() == "0" + return this.user.status == "0" }, authFail() { return this.user.status == -1 @@ -57,10 +56,7 @@ export default { return this.authFail ? "审核未通过" : "正在审核中" } }, - onLoad(options) { - if (options.status) { - this.status = options.status - } + onLoad() { if (!this.isSuccess && !this.isFail) this.getAuthResult() }, methods: {