提交 4e8c6fb7 authored 作者: RuoYi's avatar RuoYi

修复字典组件值为整形不显示问题

上级 134835c8
...@@ -31,12 +31,12 @@ export default { ...@@ -31,12 +31,12 @@ export default {
type: Array, type: Array,
default: null, default: null,
}, },
value: [String, Array], value: [Number, String, Array],
}, },
computed: { computed: {
values() { values() {
if (this.value) { if (this.value !== null && typeof this.value !== 'undefined') {
return Array.isArray(this.value) ? this.value : [this.value]; return Array.isArray(this.value) ? this.value : [String(this.value)];
} else { } else {
return []; return [];
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论