修复回显数据字典数组异常问题(I60UYQ)

This commit is contained in:
RuoYi
2022-11-15 14:11:52 +08:00
parent 8f2b3ac465
commit 74ba681fee
2 changed files with 16 additions and 32 deletions

View File

@ -86,11 +86,14 @@ export function selectDictLabel(datas, value) {
return actions.join('');
}
// 回显数据字典(字符串数组)
// 回显数据字典(字符串数组)
export function selectDictLabels(datas, value, separator) {
if (value === undefined) {
if (value === undefined || value.length ===0) {
return "";
}
if (Array.isArray(value)) {
value = value.join(",");
}
var actions = [];
var currentSeparator = undefined === separator ? "," : separator;
var temp = value.split(currentSeparator);