Browse Source

fix(Web): 去掉load image时间戳

hujinliang 4 years ago
parent
commit
60d1410881
4 changed files with 3 additions and 3 deletions
  1. 1 1
      web/dist/vap.js
  2. 0 0
      web/dist/vap.min.js
  3. 1 1
      web/package.json
  4. 1 1
      web/src/vap-frame-parser.ts

+ 1 - 1
web/dist/vap.js

@@ -1185,7 +1185,7 @@
                     });
                     });
                     _context2.prev = 13;
                     _context2.prev = 13;
                     _context2.next = 16;
                     _context2.next = 16;
-                    return this.loadImg(item.imgUrl + '?t=' + Date.now());
+                    return this.loadImg(item.imgUrl);
 
 
                   case 16:
                   case 16:
                     item.img = _context2.sent;
                     item.img = _context2.sent;

File diff suppressed because it is too large
+ 0 - 0
web/dist/vap.min.js


+ 1 - 1
web/package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "video-animation-player",
   "name": "video-animation-player",
-  "version": "0.2.8",
+  "version": "0.2.9",
   "description": "webgl动画特效组件",
   "description": "webgl动画特效组件",
   "main": "dist/vap.js",
   "main": "dist/vap.js",
   "scripts": {
   "scripts": {

+ 1 - 1
web/src/vap-frame-parser.ts

@@ -87,7 +87,7 @@ export default class FrameParser {
               return this.headData[$1]
               return this.headData[$1]
             });
             });
             try {
             try {
-              item.img = await this.loadImg(item.imgUrl + '?t=' + Date.now());
+              item.img = await this.loadImg(item.imgUrl);
             } catch (e) {}
             } catch (e) {}
           }
           }
           if (item.img) {
           if (item.img) {

Some files were not shown because too many files changed in this diff