Skip to content

Commit 5e411d3

Browse files
committed
fixed html bug
1 parent 6771a50 commit 5e411d3

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/components/HomeQueue.vue

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Description:
77
<template>
88
<section class="home-queue">
99
<i v-if='this.activeLayer.id !== ""' class="fas fa fa-chevron-up fa-md" @click="setParentLayer"></i>
10-
<span class='list-title' v-if='this.activeLayer.id !== ""'> Viewing Elements in '{{ this.activeComponent }} {{ this.depth }}' </span>
10+
<span class='list-title' v-if='this.activeLayer.id !== ""'> Viewing Elements in '{{ this.activeComponent }} {{ depth }}' </span>
1111
<span class='list-title' v-else-if='this.activeComponent !==""'> Viewing Elements in '{{ this.activeComponent }}' </span>
1212
<span class='list-title' v-else> Elements in Queue </span>
1313
<hr>
@@ -49,7 +49,6 @@ export default {
4949
},
5050
data () {
5151
return {
52-
depth: '',
5352
exceptions: ['input', 'img', 'link']
5453
}
5554
},
@@ -74,7 +73,15 @@ export default {
7473
set (value) {
7574
this.$store.dispatch(setSelectedElementList, value)
7675
}
76+
},
77+
depth: function () {
78+
let newTitle = ''
79+
this.activeLayer.lineage.forEach(el => {
80+
newTitle += ` > ${el}`
81+
})
82+
return newTitle
7783
}
84+
7885
},
7986
methods: {
8087
...mapActions(['setActiveHTML', 'setActiveLayer', 'upOneLayer']),
@@ -89,20 +96,13 @@ export default {
8996
},
9097
setLayer (element) {
9198
this.setActiveLayer(element)
92-
this.setTitle()
99+
// this.setTitle()
93100
},
94101
setParentLayer () {
95102
if (this.activeLayer.id !== '') {
96103
this.upOneLayer(this.activeLayer.id)
97-
this.setTitle()
104+
// this.setTitle()
98105
}
99-
},
100-
setTitle () {
101-
let newTitle = ''
102-
this.activeLayer.lineage.forEach(el => {
103-
newTitle += ` > ${el}`
104-
})
105-
this.depth = newTitle
106106
}
107107
},
108108
watch: {
@@ -114,12 +114,12 @@ export default {
114114
this.component = false
115115
}
116116
},
117-
activeLayer: function () {
118-
// console.log('watching activeComponent in HomeQueue')
119-
if (this.activeLayer !== '') {
120-
this.setTitle()
121-
}
122-
}
117+
// activeLayer: function () {
118+
// // console.log('watching activeComponent in HomeQueue')
119+
// if (this.activeLayer !== '') {
120+
// this.setTitle()
121+
// }
122+
// }
123123
}
124124
}
125125
</script>

0 commit comments

Comments
 (0)