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

This commit is contained in:
RuoYi
2022-11-15 14:24:50 +08:00
parent 69a246ac8a
commit 51b5d9537c
2 changed files with 15 additions and 31 deletions

View File

@@ -88,9 +88,12 @@ export function selectDictLabel(datas, value) {
// 回显数据字典(字符串数组)
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);