From 34b5c7fa1da5924a5e200b36c4a86a04b9c2963e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=B5=E5=AE=AA=E7=91=9E?= <9198107+min-xianrui@user.noreply.gitee.com> Date: Wed, 8 Jan 2025 21:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=B7=E6=B1=82=E5=86=85?= =?UTF-8?q?=E5=AE=B9~?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 + src/api/user/adminUserApi.ts | 8 +-- src/components/Heads.vue | 6 ++- src/composables/adminRequest.ts | 11 ++-- src/pages/login.vue | 94 ++++++++++++++++++++------------- src/utils/utils.ts | 18 ++++--- 6 files changed, 78 insertions(+), 60 deletions(-) diff --git a/.env b/.env index 5d1c91c..e872f61 100644 --- a/.env +++ b/.env @@ -3,6 +3,7 @@ VITE_API_FRONT_BASE_URL = http://localhost:18081 #后端接口 VITE_ADMIN_API_BASE_URL = http://localhost:18080 + VITE_LOGIN_BG = "/login/e36341619bf8f04dcbdc6b01105a85a.png" # 标题 diff --git a/src/api/user/adminUserApi.ts b/src/api/user/adminUserApi.ts index 1594006..959ea8a 100644 --- a/src/api/user/adminUserApi.ts +++ b/src/api/user/adminUserApi.ts @@ -15,13 +15,7 @@ export function captchaAdmin(uid: Number) { * 登录 * @param data */ -export function loginAdmin(uuid:String,username:String, password:String,captcha:String) { - const data ={ - "username": username, - "password": password, - "captcha": captcha, - "uuid": uuid - } +export function loginAdmin(data: any) { return adminRequest.post("/login", data) } /** diff --git a/src/components/Heads.vue b/src/components/Heads.vue index 4812e97..1e3af2e 100644 --- a/src/components/Heads.vue +++ b/src/components/Heads.vue @@ -3,7 +3,6 @@
-
头像 @@ -24,6 +23,10 @@