diff --git a/packages/devtools/src/runtime/plugins/view/Frame.vue b/packages/devtools/src/runtime/plugins/view/Frame.vue index b947f2d70..880a29b41 100644 --- a/packages/devtools/src/runtime/plugins/view/Frame.vue +++ b/packages/devtools/src/runtime/plugins/view/Frame.vue @@ -139,6 +139,9 @@ function enableComponentInspector() { } function disableComponentInspector() { + if (!window.__VUE_INSPECTOR__?.enabled) + return + window.__VUE_INSPECTOR__?.disable() props.client?.hooks.callHook('host:inspector:close') if (viewMode.value === 'component-inspector')