Browse Source

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

tags/v3.2.0
RuoYi 3 years ago
parent
commit
40bdf7b100
  1. 6
      ruoyi-ui/src/components/DictTag/index.vue

6
ruoyi-ui/src/components/DictTag/index.vue

@ -31,12 +31,12 @@ export default { @@ -31,12 +31,12 @@ export default {
type: Array,
default: null,
},
value: [String, Array],
value: [Number, String, Array],
},
computed: {
values() {
if (this.value) {
return Array.isArray(this.value) ? this.value : [this.value];
if (this.value !== null && typeof this.value !== 'undefined') {
return Array.isArray(this.value) ? this.value : [String(this.value)];
} else {
return [];
}

Loading…
Cancel
Save