This commit is contained in:
parent
929b27b7f6
commit
43673732d2
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ const closeMenu = (model: Model) => {
|
|||
let midIndex = -1;
|
||||
currentTab.parent.children.forEach((item: Tab, index: number) => {
|
||||
const editor = item.model as Editor;
|
||||
if (editor.editor?.protyle && !editor.editor?.protyle.updated) {
|
||||
if (!editor || (editor.editor?.protyle && !editor.editor?.protyle.updated)) {
|
||||
unmodifiedTabs.push(item);
|
||||
}
|
||||
if (item.id === currentTab.id) {
|
||||
|
|
|
@ -76,7 +76,7 @@ export const onGet = (data: IWebSocketData, protyle: IProtyle, action: string[]
|
|||
protyle.wysiwyg.element.setAttribute("data-doc-type", data.data.type);
|
||||
}
|
||||
|
||||
// 防止动态加载
|
||||
// 防止动态加载加载过多的内容
|
||||
if (action.includes(Constants.CB_GET_APPEND) || action.includes(Constants.CB_GET_BEFORE)) {
|
||||
setHTML({
|
||||
content: html,
|
||||
|
|
Loading…
Add table
Reference in a new issue