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 @@