Browse Source

HL-6115 去掉多余的逗号

hella_online_20240927
tengxiaofei 2 months ago
parent
commit
e436e14518
  1. 3
      src/api/wms/business/inputBlur.ts

3
src/api/wms/business/inputBlur.ts

@ -453,7 +453,8 @@ export const FormBlur = async (field, val, routeName, formRef, detailData, formS
...arr1.filter((item) => !arr2.includes(item)), ...arr1.filter((item) => !arr2.includes(item)),
...arr2.filter((item) => !arr1.includes(item)) ...arr2.filter((item) => !arr1.includes(item))
].join(',') ].join(',')
message.alert('代码' + str + '没有找到对应数据') const cleanedStr = str.replace(/[,]+$/, ''); // 去掉末尾的逗号// 去掉所有非字母和数字的符号
message.alert('代码' + cleanedStr + '没有找到对应数据')
formRef.setValues(setV) formRef.setValues(setV)
return return
} }

Loading…
Cancel
Save