diff --git a/assets/components/LogViewer/ComplexLogItem.vue b/assets/components/LogViewer/ComplexLogItem.vue index d3ab6526..f5fd5c48 100644 --- a/assets/components/LogViewer/ComplexLogItem.vue +++ b/assets/components/LogViewer/ComplexLogItem.vue @@ -13,7 +13,11 @@ diff --git a/assets/composables/search.ts b/assets/composables/search.ts index 1bfcdf94..6088c893 100644 --- a/assets/composables/search.ts +++ b/assets/composables/search.ts @@ -11,6 +11,9 @@ function matchRecord(record: Record, regex: RegExp): boolean { if (typeof value === "string" && regex.test(value)) { return true; } + if (isObject(value) && regex.test(JSON.stringify(value))) { + return true; + } if (Array.isArray(value) && matchRecord(value, regex)) { return true; }