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