数值问题没有绑定标记,数值输入框的提示必填,下方保存按钮无法保存
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-07-21 14:18:38 +08:00
parent face77f949
commit ba4a5c0d1d
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ export default {
validatorNumberInput(rule, value, callback) {
let reg = new RegExp(/^(?:-?(?:(?:0|[1-9]\d*)(?:\.\d+)?|\.\d+)|NE)$/, 'g')
if (value === '') {
callback(new Error(this.$t('common:ruleMessage:specify')));
callback();
} else {
if (!reg.test(value)) {
callback(new Error(this.$t('trials:reading:ruleMessage:validatorNumberInput')));