mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-12 23:21:23 +08:00
This commit is contained in:
parent
d0bac97bd5
commit
ea203ba8ba
@ -33,10 +33,12 @@ export const onGet = (options: {
|
|||||||
options.protyle.wysiwyg.element.removeAttribute("data-top");
|
options.protyle.wysiwyg.element.removeAttribute("data-top");
|
||||||
if (options.data.code === 1) {
|
if (options.data.code === 1) {
|
||||||
// 其他报错
|
// 其他报错
|
||||||
if (options.protyle.model) {
|
if (!options.action.includes(Constants.CB_GET_APPEND)) { // 向下加载时块可能还没有创建 https://github.com/siyuan-note/siyuan/issues/10851
|
||||||
options.protyle.model.parent.parent.removeTab(options.protyle.model.parent.id, false);
|
if (options.protyle.model) {
|
||||||
} else {
|
options.protyle.model.parent.parent.removeTab(options.protyle.model.parent.id, false);
|
||||||
options.protyle.element.innerHTML = `<div class="ft__smaller ft__secondary b3-form__space--small" contenteditable="false">${window.siyuan.languages.refExpired}</div>`;
|
} else {
|
||||||
|
options.protyle.element.innerHTML = `<div class="ft__smaller ft__secondary b3-form__space--small" contenteditable="false">${window.siyuan.languages.refExpired}</div>`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user