This commit is contained in:
2019-07-01 21:17:33 +02:00
parent dbca57d7e1
commit 761f766ea0
5 changed files with 18 additions and 14 deletions

View File

@@ -19,7 +19,7 @@ export default {
},
data() {
return {
type: {},
type: null,
window: {}
}
},
@@ -38,13 +38,15 @@ export default {
this.updateRoute()
},
updateRoute() {
this.$router.push({
name: 'view',
params: {
type: this.type,
window: this.window.label ? this.window.label.replace(' ', '-') : undefined
}
})
if (this.type) {
this.$router.push({
name: 'view',
params: {
type: this.type,
window: this.window.label ? this.window.label.replace(' ', '-') : undefined
}
})
}
}
}
}
@@ -53,7 +55,8 @@ export default {
#app {
height: 100%;
}
#app, .section {
#app,
.section {
display: flex;
flex-direction: column;
flex-grow: 1;