diff --git a/src/config/cartoon.ts b/src/config/cartoon.ts index 3dd1339..44d3b5b 100644 --- a/src/config/cartoon.ts +++ b/src/config/cartoon.ts @@ -73,17 +73,12 @@ export const cartoonConfig = { minHeight: 300, maxSize: 10 * 1024 * 1024, // 10MB maxReferCount: 3, - cropOptions: { - canScale: true, - autoCropWidth: 1024, - autoCropHeight: 1024, - ceilbutton: true, - infoTrue: true, - fixed: false, - fixedNumber: [3, 4], - fixedBox: false, - canMoveBox: true, - enlarge: 2 + /** 选图后强制 3:4;可缩放图片;允许框超出图片,超出区域白底填充 */ + crop: { + ratio: [3, 4] as [number, number], + fillColor: '#ffffff', + outputType: 'jpeg' as const, + enlarge: 2, } }, diff --git a/src/router/index.ts b/src/router/index.ts index 31c8b20..0854cd1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -96,7 +96,10 @@ router.beforeEach((_to, _from, next) => { window.document.title = `${brandName} - ${titleText}` setDocumentFavicon(shopBrand.logo || douyinConfig.images.logo) } 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) } else { window.document.title = config.showBrandInTitle && brandText