cloud-web-corejs 1.0.54-dev.502 → 1.0.54-dev.504

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.504",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -152,7 +152,12 @@ indexMixin = {
152
152
  let showSourceUrl = null
153
153
  if (Array.isArray(attachment)) {
154
154
  if (attachment.length) {
155
- showSourceUrl = attachment[0].domain + attachment[0].url;
155
+ let row = attachment[0];
156
+ if(row){
157
+ showSourceUrl = row.domain + row.url;
158
+ }else{
159
+ showSourceUrl = null;
160
+ }
156
161
  }
157
162
  } else if (Object.prototype.toString.call(attachment) === "[object Object]") {
158
163
  showSourceUrl = attachment.domain + attachment.url;
@@ -167,11 +172,16 @@ indexMixin = {
167
172
  let imageUrl = null
168
173
  if (Array.isArray(attachment)) {
169
174
  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
- );
175
+ let row = attachment[0];
176
+ if(row){
177
+ imageUrl = this.$commonFileUtil.getShowUrl(
178
+ row.domain +
179
+ (row.medium ? row.medium : row.url),
180
+ showImagePreview
181
+ );
182
+ }else{
183
+ imageUrl = null;
184
+ }
175
185
  }
176
186
  } else if (Object.prototype.toString.call(attachment) === "[object Object]") {
177
187
  imageUrl = this.$commonFileUtil.getShowUrl(
@@ -191,7 +201,12 @@ indexMixin = {
191
201
  let fileName = null
192
202
  if (Array.isArray(attachment)) {
193
203
  if (attachment.length) {
194
- fileName = attachment[0].name;
204
+ let row = attachment[0];
205
+ if(row){
206
+ fileName = row.name;
207
+ }else{
208
+ fileName = null;
209
+ }
195
210
  }
196
211
  } else if (Object.prototype.toString.call(attachment) === "[object Object]") {
197
212
  fileName = attachment.name;