Commit b4f997bf by 展昭

update

parent 89cfa958
Showing with 5 additions and 3 deletions
......@@ -41,13 +41,15 @@ export default class SelectIdentity extends Vue {
this.$router.push({ name: "Index", query: { id_no: this.id_no } });
}
created() {
this.$server.EmployeeService.getUserInfo({}).then(res => {
if (res.data && res.data.uthStatus && res.data.uthStatus > 2) {
async created() {
await this.$server.EmployeeService.getUserInfo({}).then(res => {
if (res.data && res.data.uthStatus && res.data.uthStatus > 0) {
this.id_no = res.data.personalIdCardNo;
} else {
//TODO: 跳转到实名认证
}
}).catch(err=>{
console.log('err=',err);
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment