fix: prevent empty bulk add from clearing import URLs (#7820)

Co-authored-by: zhangjian45 <zhangjian45@lenovo.com>
This commit is contained in:
ft4453080
2026-07-18 02:40:45 +08:00
committed by GitHub
parent bda2f3637c
commit 7092497cd2
2 changed files with 12 additions and 1 deletions

View File

@@ -223,6 +223,10 @@ async function deleteReport(id: string) {
fetchReports();
function assignUrls(urls: string[]) {
if (urls.length === 0) {
return;
}
bulkUrls.value = urls.map(url => ({ url, categories: [], tags: [] }));
}
</script>