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,
|
||||
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,
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user