diff --git a/frontend/admin-web/package-lock.json b/frontend/admin-web/package-lock.json index eaf08cd6..4aeedd41 100644 --- a/frontend/admin-web/package-lock.json +++ b/frontend/admin-web/package-lock.json @@ -29,7 +29,7 @@ "eslint-config-next": "^15.1.6", "prettier": "^3.4.2", "sass": "^1.83.4", - "typescript": "^5.7.3" + "typescript": "5.9.3" } }, "node_modules/@babel/runtime": { diff --git a/frontend/admin-web/package.json b/frontend/admin-web/package.json index 4bcb7c4d..8c97c8ed 100644 --- a/frontend/admin-web/package.json +++ b/frontend/admin-web/package.json @@ -35,6 +35,6 @@ "eslint-config-next": "^15.1.6", "prettier": "^3.4.2", "sass": "^1.83.4", - "typescript": "^5.7.3" + "typescript": "5.9.3" } } diff --git a/frontend/admin-web/src/app/(auth)/login/login.module.scss b/frontend/admin-web/src/app/(auth)/login/login.module.scss index 47414952..56ee5ffe 100644 --- a/frontend/admin-web/src/app/(auth)/login/login.module.scss +++ b/frontend/admin-web/src/app/(auth)/login/login.module.scss @@ -92,33 +92,31 @@ &__inputGroup { align-self: stretch; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); - border-radius: 6px; - background-color: transparent; display: flex; flex-direction: column; align-items: flex-start; + gap: 16px; + } + + &__fieldWrapper { + align-self: stretch; + display: flex; + flex-direction: column; + gap: 4px; } &__inputWrapper { align-self: stretch; background-color: $white; border: 1px solid #cbd5e1; + border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 12px; - - &:first-child { - border-radius: 6px 6px 0 0; - border-bottom: none; - } - - &:last-child { - border-radius: 0 0 6px 6px; - } + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); &--error { border-color: $error-color; diff --git a/frontend/admin-web/src/app/(auth)/login/page.tsx b/frontend/admin-web/src/app/(auth)/login/page.tsx index 6ae19393..01eb3677 100644 --- a/frontend/admin-web/src/app/(auth)/login/page.tsx +++ b/frontend/admin-web/src/app/(auth)/login/page.tsx @@ -125,43 +125,49 @@ export default function LoginPage() {
{/* 输入框组 */}
-
- + {/* 邮箱输入字段 */} +
+
+ +
+ {errors.email && ( + {errors.email} + )}
- {errors.email && ( - {errors.email} - )} -
- + {/* 密码输入字段 */} +
+
+ +
+ {errors.password && ( + {errors.password} + )}
- {errors.password && ( - {errors.password} - )}
{/* 忘记密码链接 */}