RuoYi
2021-08-29 4e8c6fb7c0adfb8b625f5c3e5cd4811188d58849
修复字典组件值为整形不显示问题
已修改1个文件
6 ■■■■ 文件已修改
ruoyi-ui/src/components/DictTag/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/components/DictTag/index.vue
@@ -31,12 +31,12 @@
      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 [];
      }