File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 54
54
class =" entry list-item"
55
55
:class =" { active: inspectedIndex === index }"
56
56
:data-active =" active"
57
- @click =" inspect(filteredRoutes .indexOf(route))"
57
+ @click =" inspect(routeChanges .indexOf(route))"
58
58
>
59
59
<span class =" route-name" >{{ route.to.path }}</span >
60
60
<span class =" time" >{{ route.timestamp | formatTime }}</span >
Original file line number Diff line number Diff line change 18
18
}"
19
19
>
20
20
<routes-tree-item
21
- v-for =" ( route, index) in filteredRoutes"
21
+ v-for =" route in filteredRoutes"
22
22
ref =" instances"
23
23
:key =" route.path"
24
24
:route =" route"
25
- :route-id =" index "
25
+ :route-id =" routeChanges.indexOf(route) "
26
26
:depth =" 0"
27
27
/>
28
28
</div >
@@ -34,7 +34,7 @@ import ScrollPane from 'components/ScrollPane.vue'
34
34
import ActionHeader from ' components/ActionHeader.vue'
35
35
import RoutesTreeItem from ' ./RoutesTreeItem.vue'
36
36
37
- import { mapGetters } from ' vuex'
37
+ import { mapGetters , mapState } from ' vuex'
38
38
39
39
export default {
40
40
components: {
@@ -44,6 +44,10 @@ export default {
44
44
},
45
45
46
46
computed: {
47
+ ... mapState (' routes' , [
48
+ ' routeChanges'
49
+ ]),
50
+
47
51
... mapGetters (' routes' , [
48
52
' filteredRoutes'
49
53
]),
You can’t perform that action at this time.
0 commit comments