From 00982d2742e96fd326e02d998ac0a0750b2143f6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Dec 2021 22:26:09 +0900 Subject: [PATCH] enhance(client): improve usability --- packages/client/src/ui/classic.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/client/src/ui/classic.vue b/packages/client/src/ui/classic.vue index 91dbe2462..41da97315 100644 --- a/packages/client/src/ui/classic.vue +++ b/packages/client/src/ui/classic.vue @@ -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) {