mirror of
https://github.com/motajs/template.git
synced 2026-11-18 10:14:30 +08:00
chore: Hotkey 系统遗留提交
This commit is contained in:
1 parent
21dea3adf0
commit
4115753f1f
2 files changed
+2
-27
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { IHotkeyEmitInfo, IHotkeySystem } from '@motajs/system';
|
||||
import { IHotkeyUsing } from './types';
|
||||
import { getCurrentInstance, onMounted, onUnmounted } from 'vue';
|
||||
import { getCurrentInstance, onBeforeMount, onUnmounted } from 'vue';
|
||||
import { logger } from '@motajs/common';
|
||||
|
||||
class HotkeyUsing implements IHotkeyUsing {
|
||||
@@ -21,7 +21,7 @@ class HotkeyUsing implements IHotkeyUsing {
|
||||
const { promise, resolve } = Promise.withResolvers<symbol>();
|
||||
this.scopePromise = promise;
|
||||
|
||||
onMounted(() => {
|
||||
onBeforeMount(() => {
|
||||
this.mounted = true;
|
||||
const scope = system.enterScope(clearImpl);
|
||||
this.keyScope = scope;
|
||||
|
||||
Reference in new issue
Block a user