Skip to content

Commit f7c38a4

Browse files
committed
🐛 fix(批量添加提醒): 修复批量添加块不显示在文档所有提醒
1 parent 4427b7f commit f7c38a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/BatchReminderDialog.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Dialog, showMessage } from "siyuan";
22
import { t } from "../utils/i18n";
3-
import { ensureReminderDataFile, updateBlockReminderBookmark } from "../api";
3+
import { ensureReminderDataFile, updateBlockReminderBookmark,getBlockByID } from "../api";
44
import { getRepeatDescription } from "../utils/repeatUtils";
55
import { getLocalDateString, getLocalTimeString } from "../utils/dateUtils";
66
import { RepeatConfig, RepeatSettingsDialog } from "./RepeatSettingsDialog";
@@ -992,11 +992,11 @@ class SmartBatchDialog {
992992
}
993993

994994
const reminderId = `${blockId}_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
995-
995+
const block = await getBlockByID(blockId);
996996
const reminder = {
997997
id: reminderId,
998998
blockId: blockId,
999-
docId: blockId,
999+
docId: block.root_id,
10001000
title: setting.cleanTitle,
10011001
date: setting.date,
10021002
completed: false,

0 commit comments

Comments
 (0)