...
|
...
|
@@ -16,8 +16,8 @@ export function getSlicedUrl(src, width, height, mode = 1) { |
|
|
newSrc = src + '?imageView2/' + mode + '/w/' + width + '/h/' + height;
|
|
|
} else {
|
|
|
newSrc = src.replace('{mode}', mode)
|
|
|
.replace('{width}', width)
|
|
|
.replace('{height}', height);
|
|
|
.replace(/{width}/g, width)
|
|
|
.replace(/{height}/g, height);
|
|
|
}
|
|
|
return newSrc;
|
|
|
}
|
...
|
...
|
|