From 990552167643a8ff2b360aeae2ea9dd9a666c47b Mon Sep 17 00:00:00 2001 From: Jianyun Date: Sun, 4 Aug 2024 13:28:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=BE=E7=BD=AE=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/calibre-pages/src/App.vue | 17 ---------- app/calibre-pages/src/views/Setting.vue | 44 ++++++++++++------------- 2 files changed, 21 insertions(+), 40 deletions(-) diff --git a/app/calibre-pages/src/App.vue b/app/calibre-pages/src/App.vue index b977d1c..c1fbea4 100644 --- a/app/calibre-pages/src/App.vue +++ b/app/calibre-pages/src/App.vue @@ -38,23 +38,6 @@ export default { Sidebar, Footer }, - data() { - return { - isSidebarVisible: true, - isPhone: document.documentElement.clientWidth < 993 - } - }, - mounted() { - window.addEventListener('resize', () => { - this.isPhone = document.documentElement.clientWidth < 993 // 小于993视为平板及手机 - console.log("isPhone: " + this.isPhone) - }) - }, - methods: { - toggleSidebar() { - this.isSidebarVisible = !this.isSidebarVisible - } - } } diff --git a/app/calibre-pages/src/views/Setting.vue b/app/calibre-pages/src/views/Setting.vue index ff8740f..1e51f1c 100644 --- a/app/calibre-pages/src/views/Setting.vue +++ b/app/calibre-pages/src/views/Setting.vue @@ -1,36 +1,34 @@