Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-12-09 21:08:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c06a395f9b801116c8af8b9be7735cb891826ea6
c06a395f
1 parent
84e5d311
fix(SharePoster): 将缩略图宽度固定为400px以避免重复处理
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/ui/SharePoster.vue
src/components/ui/SharePoster.vue
View file @
c06a395
...
...
@@ -109,7 +109,7 @@ function build_cdn_thumbnail(src, width) {
try
{
const
u
=
new
URL
(
url
,
window
.
location
.
origin
)
if
(
u
.
hostname
===
'
cdn
.
ipadbiz
.
cn
'
)
{
const
param
=
`
imageMogr2
/
thumbnail
/
$
{
Math
.
max
(
100
,
Math
.
round
(
width
))}
x
/
strip
/
quality
/
70
`
const
param
=
`
imageMogr2
/
thumbnail
/
400
x
/
strip
/
quality
/
70
`
const
has_mogr
=
url
.
includes
(
'
imageMogr2
'
)
// 若已有 imageMogr2,直接返回原地址,避免重复追加造成不确定行为
if
(
!
has_mogr
)
{
...
...
Please
register
or
login
to post a comment