Vanessa 2023-06-13 00:08:05 +08:00
parent 5046c8d862
commit f3a1ce12f8
3 changed files with 10 additions and 0 deletions

View file

@ -692,6 +692,11 @@ export class Wnd {
clearCounter();
this.children.find((item, index) => {
if (item.id === id) {
if (item.model instanceof Custom) {
if (item.model.beforeDestroy) {
item.model.beforeDestroy();
}
}
if (item.model instanceof Editor && hasSaveScroll) {
saveScroll(item.model.editor.protyle);
}