We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10333f7 commit e1e309aCopy full SHA for e1e309a
packages/shell-dev-vue3/src/devtools-plugin/index.js
@@ -22,12 +22,14 @@ export default {
22
let time = 0
23
24
api.on.walkComponentTree((payload, ctx) => {
25
- if (payload.componentInstance.type.name === 'MyApp') {
26
- payload.componentTreeData.tags.push({
27
- label: 'root',
28
- textColor: 0x000000,
29
- backgroundColor: 0xFF984F
30
- })
+ for (const node of payload.componentTreeData) {
+ if (node.name === 'MyApp') {
+ node.tags.push({
+ label: 'root',
+ textColor: 0x000000,
+ backgroundColor: 0xFF984F
31
+ })
32
+ }
33
}
34
})
35
0 commit comments