atr-components 0.2.233 → 0.2.235
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/core/utils/ToolsUtil.mjs +4 -3
- package/esm2020/lib/shared/img-canvas/img-canvas.component.mjs +1 -2
- package/fesm2015/atr-components.mjs +3 -3
- package/fesm2015/atr-components.mjs.map +1 -1
- package/fesm2020/atr-components.mjs +3 -3
- package/fesm2020/atr-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -394,7 +394,7 @@ class ToolsUtil {
|
|
|
394
394
|
if (url.startsWith("http")) {
|
|
395
395
|
return url;
|
|
396
396
|
}
|
|
397
|
-
return atr_static_datas.OSS_URL + url;
|
|
397
|
+
return atr_static_datas.OSS_URL + url + "?v=" + new Date().getTime();
|
|
398
398
|
}
|
|
399
399
|
static getStaticOssUrl(url) {
|
|
400
400
|
if (!url) {
|
|
@@ -403,7 +403,8 @@ class ToolsUtil {
|
|
|
403
403
|
if (url.startsWith("http")) {
|
|
404
404
|
return url;
|
|
405
405
|
}
|
|
406
|
-
|
|
406
|
+
let v = new Date().getTime();
|
|
407
|
+
return atr_static_datas.STATIC_OSS_URL + url + "?v=" + v;
|
|
407
408
|
}
|
|
408
409
|
static removeHtml(value) {
|
|
409
410
|
if (!value) {
|
|
@@ -4795,7 +4796,6 @@ class ImgCanvasComponent {
|
|
|
4795
4796
|
let context1 = this.canvasDom.getContext('2d');
|
|
4796
4797
|
this.img = new Image(); //创建img元素
|
|
4797
4798
|
this.img.setAttribute('crossOrigin', 'anonymous');
|
|
4798
|
-
this.img.crossOrigin = 'anonymous';
|
|
4799
4799
|
this.img.src = this.imgUrl; //设置图片源地址
|
|
4800
4800
|
// this.img.src = ToolsUtil.getOssUrl(this.imgUrl);//设置图片源地址
|
|
4801
4801
|
this.img.onload = () => {
|