🎨 Distinguishing between a referenced definition block that does not exist or one that is not indexed https://github.com/siyuan-note/siyuan/issues/16850

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-17 14:24:25 +08:00
parent ddf35ec7df
commit 05380060fc
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
18 changed files with 166 additions and 56 deletions

View file

@ -33,6 +33,10 @@ export const initMessage = () => {
// type: info/error; timeout: 0 手动关闭;-1 永不关闭
export const showMessage = (message: string, timeout = 6000, type = "info", messageId?: string) => {
if (!message) {
return;
}
const messagesElement = document.getElementById("message").firstElementChild;
if (!messagesElement) {
let tempMessages = document.getElementById("tempMessage");