BUG 30545

This commit is contained in:
aixianling
2022-07-15 17:04:15 +08:00
parent 9b09468c0f
commit 1d5ed72119

View File

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