Skip to content

Commit

Permalink
perf: gif
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Nov 14, 2024
1 parent 0312473 commit b21aa77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export function showBanner(url, style = "mini_banner", replace = true) {
url = url.replace(/oss\.jx3box\.com/g, "cdn.jx3box.com");
}

// gif不做处理
if (url.endsWith(".gif")) return url;

url += `?x-oss-process=style/${style}`;

return url;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jx3box/jx3box-common",
"version": "8.5.1",
"version": "8.5.2",
"description": "JX3BOX公共基础模块",
"main": "main.js",
"repository": {
Expand Down

0 comments on commit b21aa77

Please sign in to comment.