mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-27 17:34:06 +01:00
🐛 cell 获取错误
This commit is contained in:
parent
52de7a24d4
commit
aa2b52bad9
5 changed files with 72 additions and 69 deletions
|
|
@ -145,12 +145,14 @@ const genUploadedLabel = (responseText: string, protyle: IProtyle) => {
|
|||
});
|
||||
if ((nodeElement && nodeElement.classList.contains("av"))) {
|
||||
updateCellsValue(protyle, nodeElement, avAssets);
|
||||
document.querySelector(".av__panel")?.remove();
|
||||
return
|
||||
}
|
||||
if (document.querySelector(".av__panel")) {
|
||||
const blockElement = hasClosestBlock(protyle.wysiwyg.element.querySelector(".av__cell--select"));
|
||||
if (blockElement) {
|
||||
updateCellsValue(protyle, blockElement, avAssets);
|
||||
document.querySelector(".av__panel")?.remove();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue