diff --git a/packages/devtools-kit/src/core/component/utils/index.ts b/packages/devtools-kit/src/core/component/utils/index.ts
index a53d10f80..39afe95f3 100644
--- a/packages/devtools-kit/src/core/component/utils/index.ts
+++ b/packages/devtools-kit/src/core/component/utils/index.ts
@@ -3,7 +3,11 @@ import { basename, classify } from '@vue/devtools-shared'
import { Fragment } from '../../../shared/stub-vue'
function getComponentTypeName(options: VueAppInstance['type']) {
- return options.name || options._componentTag || options.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || options.__name
+ const name = options.name || options._componentTag || options.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || options.__name
+ if (name === 'index' && options.__file?.endsWith('index.vue')) {
+ return ''
+ }
+ return name
}
function getComponentFileName(options: VueAppInstance['type']) {
diff --git a/packages/playground/basic/src/components/IndexComponent/index.vue b/packages/playground/basic/src/components/IndexComponent/index.vue
new file mode 100644
index 000000000..065c3a0d5
--- /dev/null
+++ b/packages/playground/basic/src/components/IndexComponent/index.vue
@@ -0,0 +1,9 @@
+
+
+
+
+ {{ text }} Component
+
+
diff --git a/packages/playground/basic/src/pages/Home.vue b/packages/playground/basic/src/pages/Home.vue
index d3242f5fa..085d5893c 100644
--- a/packages/playground/basic/src/pages/Home.vue
+++ b/packages/playground/basic/src/pages/Home.vue
@@ -1,5 +1,6 @@