diff --git a/resources/js/layouts/AppLayout.vue b/resources/js/layouts/AppLayout.vue
index a6ec8da5..2f479436 100644
--- a/resources/js/layouts/AppLayout.vue
+++ b/resources/js/layouts/AppLayout.vue
@@ -154,10 +154,12 @@ export default {
window.addEventListener('resize', this.menuListener);
this.menuListener();
- window.addEventListener('inertiaStart', (e) => {
- _self.menuVisible = false;
- _self.searchVisible = false;
- _self.menuOverflowVisible = false;
+ window.addEventListener('inertiaStart', () => {
+ if (!window.matchMedia('(min-width: 1024px)').matches) {
+ _self.menuVisible = false;
+ _self.searchVisible = false;
+ _self.menuOverflowVisible = false;
+ }
});
},
};
diff --git a/resources/js/views/member/VIndex.vue b/resources/js/views/member/VIndex.vue
index e215ae90..df64e654 100644
--- a/resources/js/views/member/VIndex.vue
+++ b/resources/js/views/member/VIndex.vue
@@ -34,57 +34,7 @@