forked from platypush/platypush
entities
should be the default view when the web panel is opened
This commit is contained in:
parent
135965176d
commit
a9751f21f1
2 changed files with 2 additions and 10 deletions
|
@ -90,11 +90,6 @@ export default {
|
|||
host: null,
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
if (this.isMobile() && !this.$root.$route.hash.length)
|
||||
this.collapsed = false
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -45,10 +45,7 @@ export default {
|
|||
methods: {
|
||||
initSelectedPanel() {
|
||||
const match = this.$route.hash.match('#?([a-zA-Z0-9.]+)[?]?(.*)')
|
||||
if (!match)
|
||||
return
|
||||
|
||||
const plugin = match[1]
|
||||
const plugin = match ? match[1] : 'entities'
|
||||
if (plugin?.length)
|
||||
this.selectedPanel = plugin
|
||||
},
|
||||
|
@ -113,7 +110,7 @@ main {
|
|||
height: 100%;
|
||||
display: flex;
|
||||
|
||||
@media screen and (max-width: $tablet) {
|
||||
@include until($tablet) {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue