Explorar el Código

空值不进行回显数据字典

RuoYi hace 3 años
padre
commit
13d9251225
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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);