feat(setting): 系统设置支持上传 App 登录页背景

This commit is contained in:
Vicky authored and trae-solo-agent committed 2026-10-30 17:14:50 +08:00
1 parent a94018d5d3
commit dd4be08d49
2 files changed
+138 -3

No files matched your search

@@ -46,6 +46,13 @@ export const BANNER_IMAGE: ImagePreset = {
maxHeight: 1164
}
export const LOGIN_BACKGROUND: ImagePreset = {
label: '登录页背景',
hint: '建议 1170×2532(390×844dp × 3,iPhone 整屏竖图),min 720×1560',
maxWidth: 1170,
maxHeight: 2532
}
/** 按规格压缩:尺寸未超且体积不大时原样返回,不做二次编码。 */
export function compressForPreset(file: File, preset: ImagePreset): Promise<File> {
return compressImage(file, {