1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-01 16:28:12 +09:00

Fix glitch

This commit is contained in:
syuilo 2018-06-07 01:00:38 +09:00
parent ebb98d975b
commit b85597b15d

View File

@ -29,12 +29,14 @@ export default Vue.extend({
XNotificationsColumn,
XWidgetsColumn
},
computed: {
columns() {
if (this.$store.state.settings.deck == null) return [];
return this.$store.state.settings.deck.columns;
}
},
created() {
if (this.$store.state.settings.deck == null) {
const deck = {
@ -63,6 +65,14 @@ export default Vue.extend({
}
},
mounted() {
document.documentElement.style.overflow = 'hidden';
},
beforeDestroy() {
document.documentElement.style.overflow = 'auto';
},
methods: {
add() {
this.os.new(Menu, {