This commit is contained in:
shijingjing
2022-05-06 18:06:11 +08:00
parent 8f450f3182
commit 65bcb5213b

View File

@@ -528,7 +528,7 @@ export default {
// this.form.birthday = this.$idCardNoUtil.getIdCardInfo(idNumber)?.birthday
this.form.age = this.$calcAge(this.form.idNumber)
let birth = idNumber.substr(6,8)
this.form.birthday = birth.replace(/(.{4})(.{2})/,"$1-$2-");
this.form.birthDate = birth.replace(/(.{4})(.{2})/,"$1-$2-");
},
deep: true,
},