forked from natuka/web.puabadge.com
修改:优化cartoon的裁剪比例
This commit is contained in:
1 parent
482f6a57ce
commit
6c55986337
2 files changed
+10
-12
No files matched your search
+6
-11
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user