fix: dict
							parent
							
								
									f2ef97517f
								
							
						
					
					
						commit
						f4bff0c836
					
				|  | @ -50,9 +50,6 @@ export const useRender = { | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   renderDict: (text, type, dictType?) => { |   renderDict: (text, type, dictType?) => { | ||||||
|     if (!text) { |  | ||||||
|       return '' |  | ||||||
|     } |  | ||||||
|     if (type) { |     if (type) { | ||||||
|       return h(DictTag, { |       return h(DictTag, { | ||||||
|         type: type, |         type: type, | ||||||
|  |  | ||||||
|  | @ -68,7 +68,7 @@ export const getBoolDictOptions = (dictType: string) => { | ||||||
| 
 | 
 | ||||||
| export const getDictObj = (dictType: string, value: any) => { | export const getDictObj = (dictType: string, value: any) => { | ||||||
|   const dictOptions: DictDataType[] = getDictOptions(dictType) |   const dictOptions: DictDataType[] = getDictOptions(dictType) | ||||||
|   if (dictOptions && dictOptions.length > 0) { |   if (dictOptions) { | ||||||
|     dictOptions.forEach((dict: DictDataType) => { |     dictOptions.forEach((dict: DictDataType) => { | ||||||
|       if (dict.value === value.toString()) { |       if (dict.value === value.toString()) { | ||||||
|         return dict |         return dict | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 xingyuv
						xingyuv