Ver código fonte

设置字典默认值

Signed-off-by: 缄默 <pengyouak@163.com>
缄默 1 ano atrás
pai
commit
488a71da48
1 arquivos alterados com 4 adições e 0 exclusões
  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.tagType = dict.tagType ?? "primary";
   }
+  else {
+	state.label = props.defaultValue;
+    state.tagType = "info";
+  }
 }
 </script>