style: 统一代码格式并修复样式问题

- 移除 env.d.ts 和 vite.config.ts 中多余的空行
- 修复 package.json 和 tsconfig.json 的换行符问题
- 标准化对象字面量和函数参数中的尾部逗号
- 将登录图标样式从 max-width 改为明确的 width 和 height
- 压缩 index.html 中 favicon 链接的格式
- 简化 admin.ts 中函数参数的类型声明格式
This commit is contained in:
anghunk
2026-01-30 23:05:48 +08:00
parent 87dee6b467
commit f7c49ed9e6
8 changed files with 21 additions and 24 deletions

View File

@@ -25,7 +25,7 @@ async function request<T>(method: HttpMethod, path: string, body?: unknown): Pro
const res = await fetch(`${apiBaseUrl}${path}`, {
method,
headers,
body: body !== undefined ? JSON.stringify(body) : undefined
body: body !== undefined ? JSON.stringify(body) : undefined,
});
let data: any = null;
try {