fix: renderImg

pull/16/head
xingyu 2023-05-19 11:36:12 +08:00
parent e8f1528a80
commit 0413be595d
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import { h } from 'vue'
import dayjs from 'dayjs'
import { Button, Tag } from 'ant-design-vue'
import { isArray } from '@/utils/is'
import { isArray, isString } from '@/utils/is'
import { DictTag } from '@/components/DictTag'
import { Icon } from '@/components/Icon'
import TableImg from '../components/TableImg.vue'
@ -16,7 +16,7 @@ export const useRender = {
if (text) {
if (isArray(text)) {
return h(TableImg, { imgList: text })
} else {
} else if (isString(text)) {
return h(TableImg, { imgList: [text] })
}
}