Browse Source

【修复】修复图片后缀为大写的时候不能预览的bug

就是那个锅 4 years ago
parent
commit
aeb7a7eab1
1 changed files with 6 additions and 2 deletions
  1. 6 2
      _web/src/views/system/file/index.vue

+ 6 - 2
_web/src/views/system/file/index.vue

@ -76,8 +76,12 @@
        <a-popconfirm v-if="hasPerm('sysFileInfo:delete')" placement="topRight" title="确认删除?" @confirm="() => sysFileInfoDelete(record)">
          <a>删除</a>
        </a-popconfirm>
        <a-divider type="vertical" v-if="(hasPerm('sysFileInfo:preview') & record.fileSuffix === 'png' || record.fileSuffix === 'jpeg' || record.fileSuffix === 'jpg'|| record.fileSuffix === 'gif'|| record.fileSuffix === 'tif' || record.fileSuffix === 'bmp' ) & hasPerm('sysFileInfo:delete')"/>
        <a v-if="(hasPerm('sysFileInfo:preview') & record.fileSuffix === 'png' || record.fileSuffix === 'jpeg'|| record.fileSuffix === 'jpg'|| record.fileSuffix === 'gif'|| record.fileSuffix === 'tif' || record.fileSuffix === 'bmp' )" @click="$refs.previewForm.preview(record)">预览</a>
        <a-divider type="vertical" v-if="(hasPerm('sysFileInfo:preview') & record.fileSuffix === 'png' || record.fileSuffix === 'PNG' || record.fileSuffix === 'jpeg' || record.fileSuffix === 'JPEG'
        || record.fileSuffix === 'jpg' || record.fileSuffix === 'JPG' || record.fileSuffix === 'gif' || record.fileSuffix === 'GIF' ||
        record.fileSuffix === 'tif' || record.fileSuffix === 'TIF' || record.fileSuffix === 'bmp' || record.fileSuffix === 'BMP') & hasPerm('sysFileInfo:delete')"/>
        <a v-if="(hasPerm('sysFileInfo:preview') & record.fileSuffix === 'png' || record.fileSuffix === 'PNG' || record.fileSuffix === 'jpeg' || record.fileSuffix === 'JPEG'
        || record.fileSuffix === 'jpg' || record.fileSuffix === 'JPG' || record.fileSuffix === 'gif' || record.fileSuffix === 'GIF' ||
        record.fileSuffix === 'tif' || record.fileSuffix === 'TIF' || record.fileSuffix === 'bmp' || record.fileSuffix === 'BMP')" @click="$refs.previewForm.preview(record)">预览</a>
      </span>
    </s-table>
    <detail-form ref="detailForm" @ok="handleOk" v-if="hasPerm('sysFileInfo:detail')"/>