export const numberValidate = (rule, value, callback) => { if (value === '') { callback(new Error('分值不能为空')) } else { const reg = /^[1-9]+\d*$/ if(reg.test(value)) callback() else callback(new Error('请输入正整数')) } }