Browse Source

!1774 sysDict 兼容数字key值,绑定数字值时只显示数字,select 选项不显示问题
Merge pull request !1774 from 一了科技/feature

zuohuaijun 1 năm trước cách đây
mục cha
commit
80f5135fa5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Web/src/components/sysDict/sysDict.vue

+ 1 - 1
Web/src/components/sysDict/sysDict.vue

@@ -74,7 +74,7 @@ const setDictValue = (value: any) => {
 
 watch(
 	() => props.modelValue,
-	(newValue) => setDictValue(newValue),
+	(newValue) => setDictValue(newValue?.toString()),
 	{ immediate: true }
 );
 </script>