MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / handleImport

Function handleImport

src/pages/components/layout/MainLayout.tsx:326–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324 }, []);
325
326 const handleImport = async () => {
327 const urls = importRef.current!.dom.value.split("\n").filter((v) => v);
328 importByUrlsLocal(urls); // 异步却不用等候?
329 setImportVisible(false); // 不等待 importByUrlsLocal?
330 };
331
332 return (
333 <ScrollBoundary parentNodeSelector="#root">

Callers 1

MainLayoutFunction · 0.85

Calls 1

importByUrlsLocalFunction · 0.85

Tested by

no test coverage detected