🐛 当前页签没有激活时编辑器没有初始化

This commit is contained in:
Vanessa 2022-08-11 11:03:16 +08:00
parent bf2bd552ff
commit 6cd50643c6
2 changed files with 42 additions and 43 deletions

View file

@ -23,7 +23,7 @@ export class Menus {
const dataType = target.getAttribute("data-type");
if (dataType === "tab-header") {
this.unselect();
initTabMenu(dataType, (getInstanceById(target.getAttribute("data-id")) as Tab).model).popup({
initTabMenu((getInstanceById(target.getAttribute("data-id")) as Tab)).popup({
x: event.clientX,
y: event.clientY
});