From 42dcf4195a69c374c0fe79db0cb42ee433eab19b Mon Sep 17 00:00:00 2001 From: youzi <2410633923@qq.com> Date: Mon, 29 Dec 2025 15:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=B4=E5=83=8F=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BC=98=E5=8C=96=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1=E6=A0=B7=E5=BC=8F=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?Gallery=E9=A1=B5=E9=9D=A2=E4=B8=8B=E8=BD=BD=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=8C=E6=96=B0=E5=A2=9E=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=99=BB=E5=BD=95API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + src/api/user/index.ts | 7 ++++ src/assets/base.less | 10 +---- src/components/menuH.vue | 82 ++++++++++++++++++++++++++++++++++++---- src/views/Gallery.vue | 12 ++++-- src/views/Home.vue | 2 +- 6 files changed, 94 insertions(+), 20 deletions(-) diff --git a/components.d.ts b/components.d.ts index 30cabf2..60a53d5 100644 --- a/components.d.ts +++ b/components.d.ts @@ -40,6 +40,7 @@ declare module 'vue' { NSelect: typeof import('naive-ui')['NSelect'] NTabPane: typeof import('naive-ui')['NTabPane'] NTabs: typeof import('naive-ui')['NTabs'] + NUpload: typeof import('naive-ui')['NUpload'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/src/api/user/index.ts b/src/api/user/index.ts index 0a97d11..317c1a0 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -16,3 +16,10 @@ export function register(data: Record) { data, }); } +// autologin +export function autologin() { + return request({ + url: "/user/autologin", + method: "post", + }); +} diff --git a/src/assets/base.less b/src/assets/base.less index da4f1bf..6014f90 100644 --- a/src/assets/base.less +++ b/src/assets/base.less @@ -7,12 +7,6 @@ font-weight: normal; } -.ps__thumb-y { - background-color: #f6cbe7 !important; -} -.devui-image-preview { - background-color: #00000090 !important; - img { - border-radius: 8px; - } +.n-scrollbar-rail__scrollbar { + background-color: #f6cbe770 !important; } \ No newline at end of file diff --git a/src/components/menuH.vue b/src/components/menuH.vue index 23c15c0..40f3056 100644 --- a/src/components/menuH.vue +++ b/src/components/menuH.vue @@ -32,7 +32,7 @@
-
登录
+
登录
@@ -56,6 +56,25 @@ + + + +
+
修改头像
+ +
+ + 点击头像上传不超过3m的图片 +
+
+ +
+ 取消 +
+
+