mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(editor): 异常处理
This commit is contained in:
parent
50b058c3c5
commit
b37568b440
@ -254,7 +254,7 @@ const globalKeyupHandler = () => {
|
||||
}
|
||||
};
|
||||
|
||||
let keycon: KeyController;
|
||||
let keycon: KeyController | undefined;
|
||||
|
||||
onMounted(() => {
|
||||
editorService?.on('remove', editorServiceRemoveHandler);
|
||||
@ -287,7 +287,7 @@ onMounted(() => {
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
keycon.destroy();
|
||||
keycon?.destroy();
|
||||
|
||||
editorService?.off('remove', editorServiceRemoveHandler);
|
||||
keybindingService?.off('keyup', globalKeyupHandler);
|
||||
|
Loading…
x
Reference in New Issue
Block a user