From 37fb325872455ec4561c64c2de3e6a4022f68bcb Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Tue, 19 Aug 2025 16:01:22 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B5=E9=9D=A2=E9=80=80?=
=?UTF-8?q?=E5=87=BA=E7=99=BB=E5=BD=95=E5=AE=9E=E7=8E=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/auth/auth.js | 2 +-
pages/set/set.vue | 78 +++++++++++++++++++++++++++++++++++++++--------
2 files changed, 67 insertions(+), 13 deletions(-)
diff --git a/api/auth/auth.js b/api/auth/auth.js
index 7988d67..47a2594 100644
--- a/api/auth/auth.js
+++ b/api/auth/auth.js
@@ -33,7 +33,7 @@ export function userLogin(data) {
* @returns {Promise} 返回登出结果
*/
export function userLogout() {
- return post('/user/logout')
+ return post('/logout')
}
/**
diff --git a/pages/set/set.vue b/pages/set/set.vue
index 873f406..1171772 100644
--- a/pages/set/set.vue
+++ b/pages/set/set.vue
@@ -3,14 +3,17 @@
{{ item.label }}
- {{ item.value }} >
+ {{ item.value }} >
- 退出登录
+ 退出登录
@@ -98,6 +145,13 @@ export default {
height: 98rpx;
background: #ffffff;
border-radius: 24.5px;
+ cursor: pointer;
+ transition: all 0.3s ease;
+
+ &:active {
+ background: #f5f5f5;
+ transform: scale(0.98);
+ }
}
}