diff --git a/fe/PC/src/utils/index.js b/fe/PC/src/utils/index.js index bec90e996..09d37fcee 100644 --- a/fe/PC/src/utils/index.js +++ b/fe/PC/src/utils/index.js @@ -450,11 +450,12 @@ export function getImgsDetailPopData(row,sucess,faild) { // 匹配正则返回值 /** 具体参数详细,可参照README.md的[表单组件补充:currenForm]说明 * @param {*} type 需要匹配的正则类型 - * @param {*} value 当前传入值(即需要校验值) + * @param {*} defaultValue 当前传入值(即需要校验值) * @param {*} fixedNum 如果type为pointNumber,需要保留小数点后的位数 * @returns */ -export function getMatchRegConformValue(type,value,fixedNum){ +export function getMatchRegConformValue(type,defaultValue,fixedNum){ + let value = defaultValue ? String(defaultValue) : '' let _conformValue = "" switch(type){ // 正整数