fixed bugs introduced in last version

This commit is contained in:
huangjx
2022-02-21 22:12:04 +08:00
parent 40e9d93f61
commit 7cd9a05a72
6 changed files with 25 additions and 16 deletions

View File

@@ -182,9 +182,11 @@ const helper = {
showErrors(target) {
let errors = document.querySelectorAll(target);
errors.forEach(element => {
helper.message(element.getAttribute('data-error-message'), 20000);
let msg;
if (msg = element.getAttribute('data-error-message'))
helper.message(msg, 20000);
})
}
},
}
export default helper