From 107b403f9cb008b1782ebd3da5001384be7d8f71 Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Mon, 18 Mar 2024 11:09:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A5=20Remove=20content=20width=20s?= =?UTF-8?q?ettings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/RootLayout.vue | 7 ------- layouts/default.vue | 32 +------------------------------- 2 files changed, 1 insertion(+), 38 deletions(-) diff --git a/components/RootLayout.vue b/components/RootLayout.vue index 1900ed28..03dcb9b7 100644 --- a/components/RootLayout.vue +++ b/components/RootLayout.vue @@ -31,17 +31,10 @@ const uiModule = namespace('ui') @Component({ head() { - const isDesktopViewMode: boolean = - this.$store.getters['ui/isDesktopViewMode'] - const contentWidth = isDesktopViewMode - ? 'width=1024, initial-scale=1, minimum-scale=1' - : 'width=device-width' - return { htmlAttrs: { class: this.$props.bgClass, }, - meta: [{ hid: 'viewport', name: 'viewport', content: contentWidth }], } }, }) diff --git a/layouts/default.vue b/layouts/default.vue index d4c1a45d..9a2ff982 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -29,14 +29,6 @@ -