enhance(client): improve usability

This commit is contained in:
syuilo 2021-12-03 22:26:09 +09:00
parent 4f208b99ff
commit 00982d2742
1 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,11 @@ export default defineComponent({
},
created() {
if (window.innerWidth < 1024) {
localStorage.setItem('ui', 'default');
location.reload();
}
document.documentElement.style.overflowY = 'scroll';
if (this.$store.state.widgets.length === 0) {