🔧 Fix Web Worker compatibility by converting reactive array to plain array before posting
This commit is contained in:
@@ -696,8 +696,11 @@ const onSearchInput = debounce(async () => {
|
||||
requestId
|
||||
});
|
||||
|
||||
// Convert reactive array to plain array (Web Workers can't clone Vue proxies)
|
||||
const plainLines = Array.from(fileLines.value);
|
||||
|
||||
searchWorker.postMessage({
|
||||
lines: fileLines.value,
|
||||
lines: plainLines,
|
||||
searchTerm: searchTerm,
|
||||
id: requestId
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user