cloud-web-corejs 1.0.54-dev.501 → 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.
@@ -168,12 +168,7 @@
168
168
  :editAttachment.sync="editAttachment"
169
169
  :edit.sync="$attrs.edit"
170
170
  ></propertiesDialog>
171
- <el-image-viewer
172
- v-if="showViewer"
173
- :on-close="closeViewer"
174
- :initial-index.sync="chooseIndex"
175
- :url-list="pictureDtoList"
176
- />
171
+
177
172
  </div>
178
173
  </template>
179
174
 
@@ -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(
@@ -58,7 +58,6 @@ export default {
58
58
  param,
59
59
  ...tabParam,
60
60
  };
61
- debugger;
62
61
  if (!tab) {
63
62
  tab = newTab;
64
63
  if (this.tabs.length >= 30) {