speedy-utils
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "speedy-utils", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "工具库", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -180,15 +180,7 @@ /** 是否是 Android 设备 */ | ||
// 降低图片分辨率 | ||
if (!newURL.includes("imageView2/2/w/")) { | ||
if (!newURL.includes("imageView2/2/w/") && imageWidth) { | ||
if (params instanceof Object && Object.keys(params).length) { | ||
if (imageWidth) { | ||
newURL += `&imageView2/2/w/${imageWidth}`; | ||
} else { | ||
newURL += "&imageView2/2/w/750"; | ||
} | ||
newURL += `&imageView2/2/w/${imageWidth}`; | ||
} else { | ||
if (imageWidth) { | ||
newURL += `?imageView2/2/w/${imageWidth}`; | ||
} else { | ||
newURL += "?imageView2/2/w/750"; | ||
} | ||
newURL += `?imageView2/2/w/${imageWidth}`; | ||
} | ||
@@ -195,0 +187,0 @@ } |
11040
341