Bläddra i källkod

设置字典默认值

Signed-off-by: 缄默 <pengyouak@163.com>
缄默 1 år sedan
förälder
incheckning
488a71da48
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      Web/src/components/table/dictLabel.vue

+ 4 - 0
Web/src/components/table/dictLabel.vue

@@ -43,5 +43,9 @@ const setDictValue = (value: any) => {
     state.label = dict[props.propLabel] || props.defaultValue;
     state.label = dict[props.propLabel] || props.defaultValue;
     state.tagType = dict.tagType ?? "primary";
     state.tagType = dict.tagType ?? "primary";
   }
   }
+  else {
+	state.label = props.defaultValue;
+    state.tagType = "info";
+  }
 }
 }
 </script>
 </script>