mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	修复字典组件值为整形不显示问题
This commit is contained in:
		@@ -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 [];
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user