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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.502",
4
+ "version": "1.0.54-dev.503",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -167,11 +167,16 @@ indexMixin = {
167
167
  let imageUrl = null
168
168
  if (Array.isArray(attachment)) {
169
169
  if (attachment.length) {
170
- imageUrl = this.$commonFileUtil.getShowUrl(
171
- attachment[0].domain +
172
- (attachment[0].medium ? attachment[0].medium : attachment[0].url),
173
- showImagePreview
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(