Browse Source

2024-01-30

codeMan 1 year ago
parent
commit
e52d13e871
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/file-block/index.vue

+ 2 - 2
src/components/file-block/index.vue

@@ -3,7 +3,7 @@
     <div class="item-file" :style="[{width:(!itemStyle.itemWidth ? '100%' : itemStyle.itemWidth + 'px')},{'margin-right':itemStyle.margin + 'px'}]" v-for="(item,index) in fileData" :key="index">
       <div class="left">
         <div class="icon" :style="{width:itemStyle.img.width+'px',height:itemStyle.img.height+'px',}">
-          <img :src="item.cover" alt  />
+          <img :src="item.cover || require('../../assets/file_icons/unknow.png')" alt  />
         </div>
         <div class="text">
           <p>{{item.document}}</p>
@@ -68,7 +68,7 @@ export default {
         this.$refs.seeFile.dialogVisible = true
         this.$emit('seeSuccess',item)
       } else if (item.fileType == 'PDF') {
-        window.open(item.url,'_self')
+        window.open(item.url,'_blank')
       } else {
         this.$notify({
           title:'提示',