修改:优化cartoon的裁剪比例
continuous-integration/drone/push Build was killed
continuous-integration/drone/promote/prod Build is passing

This commit is contained in:
Linzm committed 2026-11-03 16:05:50 +08:00
1 parent 482f6a57ce
commit 6c55986337
2 files changed
+10 -12

No files matched your search

+6 -11
View File
@@ -73,17 +73,12 @@ export const cartoonConfig = {
minHeight: 300, minHeight: 300,
maxSize: 10 * 1024 * 1024, // 10MB maxSize: 10 * 1024 * 1024, // 10MB
maxReferCount: 3, maxReferCount: 3,
cropOptions: { /** 选图后强制 3:4;可缩放图片;允许框超出图片,超出区域白底填充 */
canScale: true, crop: {
autoCropWidth: 1024, ratio: [3, 4] as [number, number],
autoCropHeight: 1024, fillColor: '#ffffff',
ceilbutton: true, outputType: 'jpeg' as const,
infoTrue: true, enlarge: 2,
fixed: false,
fixedNumber: [3, 4],
fixedBox: false,
canMoveBox: true,
enlarge: 2
} }
}, },
+4 -1
View File
@@ -96,7 +96,10 @@ router.beforeEach((_to, _from, next) => {
window.document.title = `${brandName} - ${titleText}` window.document.title = `${brandName} - ${titleText}`
setDocumentFavicon(shopBrand.logo || douyinConfig.images.logo) setDocumentFavicon(shopBrand.logo || douyinConfig.images.logo)
} else if (isJingdong) { } else if (isJingdong) {
window.document.title = `${jingdongConfig.brandName} - ${titleText}` // 品牌名与页面 title 相同时只显示一份,避免「速哇手办制作Agent - 速哇手办制作Agent」
const brandName = jingdongConfig.brandName
window.document.title =
titleText && titleText !== brandName ? `${brandName} - ${titleText}` : brandName
setDocumentFavicon(jingdongConfig.images.logoIcon) setDocumentFavicon(jingdongConfig.images.logoIcon)
} else { } else {
window.document.title = config.showBrandInTitle && brandText window.document.title = config.showBrandInTitle && brandText