修复自定义组件`file-upload`无法显示第一个文件,列表显示的文件比实际文件少一个的问题

master
sam 3 years ago
parent 50236ae4e5
commit c491257359
  1. 2
      ruoyi-ui/src/components/FileUpload/index.vue

@ -26,7 +26,7 @@
<!-- 文件列表 -->
<transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear" tag="ul">
<li :key="file.uid" class="el-upload-list__item ele-upload-list__item-content" v-for="(file, index) in fileList">
<li :key="file.url" class="el-upload-list__item ele-upload-list__item-content" v-for="(file, index) in fileList">
<el-link :href="`${baseUrl}${file.url}`" :underline="false" target="_blank">
<span class="el-icon-document"> {{ getFileName(file.name) }} </span>
</el-link>

Loading…
Cancel
Save