fix: renderImg
							parent
							
								
									e8f1528a80
								
							
						
					
					
						commit
						0413be595d
					
				|  | @ -1,7 +1,7 @@ | ||||||
| import { h } from 'vue' | import { h } from 'vue' | ||||||
| import dayjs from 'dayjs' | import dayjs from 'dayjs' | ||||||
| import { Button, Tag } from 'ant-design-vue' | import { Button, Tag } from 'ant-design-vue' | ||||||
| import { isArray } from '@/utils/is' | import { isArray, isString } from '@/utils/is' | ||||||
| import { DictTag } from '@/components/DictTag' | import { DictTag } from '@/components/DictTag' | ||||||
| import { Icon } from '@/components/Icon' | import { Icon } from '@/components/Icon' | ||||||
| import TableImg from '../components/TableImg.vue' | import TableImg from '../components/TableImg.vue' | ||||||
|  | @ -16,7 +16,7 @@ export const useRender = { | ||||||
|     if (text) { |     if (text) { | ||||||
|       if (isArray(text)) { |       if (isArray(text)) { | ||||||
|         return h(TableImg, { imgList: text }) |         return h(TableImg, { imgList: text }) | ||||||
|       } else { |       } else if (isString(text)) { | ||||||
|         return h(TableImg, { imgList: [text] }) |         return h(TableImg, { imgList: [text] }) | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 xingyu
						xingyu