From fbfd7d198e83fb1ef38cd7d468bba6e12825a22b Mon Sep 17 00:00:00 2001 From: guoapeng Date: Mon, 21 Apr 2025 16:21:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BB=E5=BD=95=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 +- src/assets/avatar.png | Bin 0 -> 4097 bytes src/pages/Login/Login.vue | 3 +- src/pages/Login/index.vue | 241 ++++++++++++++++++++++++++++++++++++++++++++++ src/router/router.ts | 2 +- src/style.css | 10 +- 6 files changed, 253 insertions(+), 7 deletions(-) create mode 100644 src/assets/avatar.png create mode 100644 src/pages/Login/index.vue diff --git a/src/App.vue b/src/App.vue index eecc0b8..08285f7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,9 +4,7 @@ import { ErrorModal, StackInfoModal } from './components/dialogs'; @@ -14,6 +12,8 @@ import { ErrorModal, StackInfoModal } from './components/dialogs'; \ No newline at end of file diff --git a/src/router/router.ts b/src/router/router.ts index 85f85f4..9cb9a7c 100644 --- a/src/router/router.ts +++ b/src/router/router.ts @@ -78,7 +78,7 @@ const routes = [ }, { path: '/login', - component: () => import('@/pages/Login/Login.vue'), + component: () => import('@/pages/Login/index.vue'), }, //匹配任何找不到的路由,404兜底 { diff --git a/src/style.css b/src/style.css index 8b94468..e45e3c4 100644 --- a/src/style.css +++ b/src/style.css @@ -54,7 +54,7 @@ body { margin: 0 auto; display: flex; place-items: center; - min-width: 320px; + min-width: 100vw; min-height: 100vh; } @@ -72,7 +72,8 @@ button { } #app { - max-width: 800px; + width: 100vw; + height: 100%; margin: 0 auto; text-align: center; } @@ -97,3 +98,8 @@ button { font-size: 0.8em; } } + +* { + -webkit-tap-highlight-color: transparent; + -webkit-touch-callout: none; +}