|
@@ -85,6 +85,7 @@ export class SImageItem extends SObjectItem {
|
|
const imgSrc = e.path[0].src;
|
|
const imgSrc = e.path[0].src;
|
|
if (this.isUrlIdentical(imgSrc)) {
|
|
if (this.isUrlIdentical(imgSrc)) {
|
|
this.isLoadOver = false;
|
|
this.isLoadOver = false;
|
|
|
|
+ this.$emit("imgLoadOver");
|
|
this.update();
|
|
this.update();
|
|
console.log("加载图片错误!", e);
|
|
console.log("加载图片错误!", e);
|
|
}
|
|
}
|
|
@@ -156,7 +157,7 @@ export class SImageItem extends SObjectItem {
|
|
/**
|
|
/**
|
|
* 判断当前地址和回调地址是否相同
|
|
* 判断当前地址和回调地址是否相同
|
|
* @param imgUrl 图片回调地址
|
|
* @param imgUrl 图片回调地址
|
|
- *
|
|
|
|
|
|
+ *
|
|
*/
|
|
*/
|
|
private isUrlIdentical(imgUrl: string): boolean {
|
|
private isUrlIdentical(imgUrl: string): boolean {
|
|
if (this.url.indexOf("://") == -1) {
|
|
if (this.url.indexOf("://") == -1) {
|
|
@@ -181,13 +182,13 @@ export class SImageItem extends SObjectItem {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
} // Function isUrlIdentical()
|
|
} // Function isUrlIdentical()
|
|
|
|
|
|
/**
|
|
/**
|
|
* 截取绝对路径中的相对路径
|
|
* 截取绝对路径中的相对路径
|
|
* @param url 绝对路径
|
|
* @param url 绝对路径
|
|
- *
|
|
|
|
|
|
+ *
|
|
*/
|
|
*/
|
|
private GetUrlRelativePath(url: string): string {
|
|
private GetUrlRelativePath(url: string): string {
|
|
var arrUrl = url.split("//");
|
|
var arrUrl = url.split("//");
|