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: {