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的图片 +
+
+ +
+ 取消 +
+
+