Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MarSeventh committed Oct 1, 2024
1 parent 2ee6f1c commit 432c3b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/AdminDashBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<template v-for="(item, index) in paginatedTableData" :key="index">
<el-card class="img-card">
<el-checkbox v-model="item.selected"></el-checkbox>
<el-image v-if="item.metadata?.FileType?.includes('image')" :preview-teleported="true" :src="'/file/' + item.name" :preview-src-list="item.previewSrcList" fit="cover" lazy class="image-preview"></el-image>
<video v-else :src="'/file/' + item.name" autoplay muted loop class="video-preview" @click="handleVideoClick"></video>
<video v-if="item.metadata?.FileType?.includes('video') || item.metadata?.FileType?.includes('audio')" :src="'/file/' + item.name" autoplay muted loop class="video-preview" @click="handleVideoClick"></video>
<el-image v-else :preview-teleported="true" :src="'/file/' + item.name" :preview-src-list="item.previewSrcList" fit="cover" lazy class="image-preview"></el-image>
<div class="image-overlay">
<div class="overlay-buttons">
<el-tooltip :disabled="disableTooltip" content="复制链接" placement="top">
Expand Down Expand Up @@ -106,8 +106,8 @@
:width="300"
align="center"
>
<el-image v-if="detailFile?.metadata?.FileType?.includes('image')" :src="'/file/' + detailFile?.name" fit="cover" lazy class="image-preview"></el-image>
<video v-else :src="'/file/' + detailFile?.name" autoplay muted loop class="video-preview" @click="handleVideoClick"></video>
<video v-if="detailFile?.metadata?.FileType?.includes('video') || detailFile?.metadata?.FileType?.includes('audio')" :src="'/file/' + detailFile?.name" autoplay muted loop class="video-preview" @click="handleVideoClick"></video>
<el-image v-else :src="'/file/' + detailFile?.name" fit="cover" lazy class="image-preview"></el-image>
</el-descriptions-item>
<el-descriptions-item label="文件名" class-name="description-item">{{ detailFile?.metadata?.FileName || detailFile?.name }}</el-descriptions-item>
<el-descriptions-item label="访问状态" class-name="description-item">{{ accessType }}</el-descriptions-item>
Expand Down

0 comments on commit 432c3b1

Please sign in to comment.