cloud-web-corejs 1.0.54-dev.502 → 1.0.54-dev.503
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/package.json
CHANGED
|
@@ -167,11 +167,16 @@ indexMixin = {
|
|
|
167
167
|
let imageUrl = null
|
|
168
168
|
if (Array.isArray(attachment)) {
|
|
169
169
|
if (attachment.length) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
let row = attachment[0];
|
|
171
|
+
if(row){
|
|
172
|
+
imageUrl = this.$commonFileUtil.getShowUrl(
|
|
173
|
+
row.domain +
|
|
174
|
+
(row.medium ? row.medium : row.url),
|
|
175
|
+
showImagePreview
|
|
176
|
+
);
|
|
177
|
+
}else{
|
|
178
|
+
imageUrl = null;
|
|
179
|
+
}
|
|
175
180
|
}
|
|
176
181
|
} else if (Object.prototype.toString.call(attachment) === "[object Object]") {
|
|
177
182
|
imageUrl = this.$commonFileUtil.getShowUrl(
|