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