|
Lines 116-122
export default {
Link Here
|
| 116 |
}; |
116 |
}; |
| 117 |
}, |
117 |
}, |
| 118 |
data() { |
118 |
data() { |
| 119 |
const vendorId = this.vendorid ? this.vendorid : this.params.id; |
119 |
const vendorId = this.vendorid || this.params.id; |
| 120 |
return { |
120 |
return { |
| 121 |
vendorId, |
121 |
vendorId, |
| 122 |
}; |
122 |
}; |
|
Lines 124-134
export default {
Link Here
|
| 124 |
mounted() { |
124 |
mounted() { |
| 125 |
const path = location.pathname.substring(1); |
125 |
const path = location.pathname.substring(1); |
| 126 |
|
126 |
|
| 127 |
Object.keys(this.$refs).forEach(ref => { |
127 |
Object.values(this.$refs) |
| 128 |
if (this.$refs[ref].href.includes(path)) { |
128 |
.find(a => a.href.includes(path)) |
| 129 |
this.$refs[ref].classList.add("current"); |
129 |
?.classList.add("current"); |
| 130 |
} |
|
|
| 131 |
}); |
| 132 |
}, |
130 |
}, |
| 133 |
}; |
131 |
}; |
| 134 |
</script> |
132 |
</script> |
| 135 |
- |
|
|