feat(ui): 重做登录页并替换默认站点图标

- 登录页改为左侧品牌区 + 右侧表单卡,补字段标签、三步流程与 DCAuth 等待面板
- 新增自定义站点图标(SVG / ICO / apple-touch-icon / 192 / 512)
- index.html 补齐图标、theme-color 与页面描述
- 修复 client.ts 中既有的 any 类型告警
This commit is contained in:
yml2213
2026-10-21 22:04:44 +08:00
parent 2f5a63ae27
commit 3761267015
9 changed files with 749 additions and 154 deletions
+9 -1
View File
@@ -25,7 +25,15 @@ api.interceptors.response.use(
if (typeof detail === 'string') {
msg = detail;
} else if (Array.isArray(detail) && detail.length > 0) {
msg = detail.map((d: any) => d?.msg || (typeof d === 'string' ? d : JSON.stringify(d))).join('; ');
msg = detail
.map((item: unknown) => {
if (typeof item === 'string') return item;
if (item && typeof item === 'object' && 'msg' in item) {
return String((item as { msg?: unknown }).msg ?? '');
}
return JSON.stringify(item);
})
.join('; ');
} else if (detail && typeof detail === 'object') {
msg = JSON.stringify(detail);
}