RuoYi
2021-09-13 db193a46e8a8a5cdc0c4bcde7b2126af85b6ef0b
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 [];
      }