张延森 hace 3 años
padre
commit
bf159fba7c
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3
    0
      src/utils/index.js

+ 3
- 0
src/utils/index.js Ver fichero

@@ -53,6 +53,9 @@ export function getQueryString(params) {
53 53
 export function compressImage(url) {
54 54
   if (!url) return url;
55 55
 
56
+  // GIF 不压缩
57
+  if (url.indexOf('.gif') > -1) return url;
58
+
56 59
   // eslint-disable-next-line no-undef
57 60
   if (url.indexOf(OSS) > -1) {
58 61
     return `${url}?x-oss-process=style/cmp80`