Selaa lähdekoodia

空值不进行回显数据字典

RuoYi 3 vuotta sitten
vanhempi
commit
13d9251225
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      src/utils/ruoyi.js

+ 3 - 0
src/utils/ruoyi.js

@@ -82,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);