fix : 字典为空死循环bug
This commit is contained in:
@@ -31,7 +31,7 @@ const props = defineProps({
|
||||
const tagConfig = ref({})
|
||||
|
||||
const filterDict = (data, value) => {
|
||||
if (!data) return
|
||||
if (!data || value == null) return
|
||||
if (data instanceof Array) {
|
||||
if (value == true || value == false) {
|
||||
tagConfig.value = data.find(item => item.value == value.toString())
|
||||
|
||||
Reference in New Issue
Block a user