Skip to content

Commit 52228b6

Browse files
committed
fix(usePluginEnter): 🐛 修复usePluginEnter异常
修复usePluginEnter加载异常
1 parent 7821c40 commit 52228b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/composables/usePluginEnter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function usePluginEnter(
88
hook: (action: IPluginEnterAction) => unknown
99
) {
1010
onMounted(() => {
11-
window?.utools.onPluginEnter((action) => {
11+
window?.utools?.onPluginEnter((action) => {
1212
return hook(action);
1313
});
1414
});

0 commit comments

Comments
 (0)