From 32d38a998cd7ac2507c8d8690b9a37d68ae87d8c Mon Sep 17 00:00:00 2001
From: bunny <1319900154@qq.com>
Date: Thu, 3 Apr 2025 18:10:57 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 4 +-
src/App.vue | 4 +-
src/store/modules/login.ts | 12 ++
src/views/login/components/login-header.vue | 30 ++++
src/views/login/index.vue | 147 ++++++++++--------
.../welcome/components/welcome-content.vue | 2 +-
6 files changed, 127 insertions(+), 72 deletions(-)
create mode 100644 src/store/modules/login.ts
create mode 100644 src/views/login/components/login-header.vue
diff --git a/.env.development b/.env.development
index 39f6686..a33e5db 100644
--- a/.env.development
+++ b/.env.development
@@ -20,8 +20,8 @@ VITE_MOCK_DEV_SERVER=true
VITE_STRICT_PORT=false
# 是否启用屏幕转vw适配,可以选择 postcss-px-to-viewport-8-plugin || autofit
-#VITE_POST_CSS_PX_TO_VIEWPORT8_PLUGIN="autofit"
-VITE_POST_CSS_PX_TO_VIEWPORT8_PLUGIN="postcss-px-to-viewport-8-plugin"
+VITE_POST_CSS_PX_TO_VIEWPORT8_PLUGIN="autofit"
+#VITE_POST_CSS_PX_TO_VIEWPORT8_PLUGIN="postcss-px-to-viewport-8-plugin"
# 是否在打包时使用cdn替换本地库 替换 true 不替换 false
VITE_CDN=false
diff --git a/src/App.vue b/src/App.vue
index 3b56c5f..cb4a71b 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -9,7 +9,7 @@
diff --git a/src/store/modules/login.ts b/src/store/modules/login.ts
new file mode 100644
index 0000000..030f8bb
--- /dev/null
+++ b/src/store/modules/login.ts
@@ -0,0 +1,12 @@
+import { defineStore } from 'pinia';
+
+export const useLoginStore = defineStore('loginStore', {
+ state: () => ({
+ username: '',
+ password: '',
+ rememberMe: false,
+ isLoading: false,
+ }),
+ getters: {},
+ actions: {},
+});
diff --git a/src/views/login/components/login-header.vue b/src/views/login/components/login-header.vue
new file mode 100644
index 0000000..5c1a2b2
--- /dev/null
+++ b/src/views/login/components/login-header.vue
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 98bb6bb..90d263c 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -1,13 +1,24 @@