mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
🎨 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:
parent
ddf35ec7df
commit
05380060fc
18 changed files with 166 additions and 56 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue