From 0a4d896965f06dda5f21283b368f42b6ea72860f Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Tue, 6 Feb 2024 13:39:56 +0800 Subject: [PATCH] feat: add useDevice --- src/components/SearchMenu/SearchFooter.vue | 7 ++----- src/components/SearchMenu/SearchModal.vue | 7 +++---- src/hooks/useDevice.ts | 11 +++++++++++ src/layouts/LeftMode.vue | 6 +++--- src/layouts/LeftTopMode.vue | 1 - src/layouts/TopMode.vue | 1 - src/layouts/components/NavigationBar/index.vue | 15 +++++++++------ .../components/Settings/SelectLayoutMode.vue | 1 - src/layouts/components/Sidebar/index.vue | 8 +++----- src/layouts/index.vue | 10 ++++------ 10 files changed, 35 insertions(+), 32 deletions(-) create mode 100644 src/hooks/useDevice.ts diff --git a/src/components/SearchMenu/SearchFooter.vue b/src/components/SearchMenu/SearchFooter.vue index b30cfd58..3326057c 100644 --- a/src/components/SearchMenu/SearchFooter.vue +++ b/src/components/SearchMenu/SearchFooter.vue @@ -1,7 +1,5 @@