|
@@ -90,7 +90,8 @@ export default {
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
currentTab: function(newVal) {
|
|
currentTab: function(newVal) {
|
|
- const key = newVal.content
|
|
|
|
|
|
+ const key = newVal?.content
|
|
|
|
+ if (!key) return // safe check
|
|
if (this.tabVisited.includes(key)) return
|
|
if (this.tabVisited.includes(key)) return
|
|
this.tabVisited.push(key)
|
|
this.tabVisited.push(key)
|
|
}
|
|
}
|