空值不进行回显数据字典

This commit is contained in:
RuoYi 2022-01-02 10:29:15 +08:00
parent 10ae0bce65
commit c9d19cbe56
1 changed files with 164 additions and 159 deletions

View File

@ -1,3 +1,5 @@
/**
* 通用js方法封装处理
* Copyright (c) 2019 ruoyi
@ -80,6 +82,9 @@ export function selectDictLabel(datas, value) {
// 回显数据字典(字符串数组)
export function selectDictLabels(datas, value, separator) {
if(value === undefined) {
return "";
}
var actions = [];
var currentSeparator = undefined === separator ? "," : separator;
var temp = value.split(currentSeparator);