项目培训图片预览问题
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-06-06 16:58:38 +08:00
parent 5de61dd125
commit 00e53c4742
1 changed files with 3 additions and 3 deletions

View File

@ -51,8 +51,8 @@
</el-dialog> </el-dialog>
</template> </template>
</base-model> </base-model>
<viewer ref="picture_perview2" style="margin: 0 10px" <viewer ref="picture_perview3" style="margin: 0 10px"
v-if="rowData.FileFormat && ['png', 'jpg', 'jpeg'].includes(rowDATA.FileFormat.toLowerCase())" v-if="rowDATA.FileFormat && ['png', 'jpg', 'jpeg'].includes(rowDATA.FileFormat.toLowerCase())"
:images="[`${OSSclientConfig.basePath}${rowDATA.FilePath}`]" :options="viewerOptions"> :images="[`${OSSclientConfig.basePath}${rowDATA.FilePath}`]" :options="viewerOptions">
<img v-show="false" :src="`${OSSclientConfig.basePath}${rowDATA.FilePath}`" alt="Image" /> <img v-show="false" :src="`${OSSclientConfig.basePath}${rowDATA.FilePath}`" alt="Image" />
@ -224,7 +224,7 @@ export default {
'.jpeg', '.jpeg',
'.png'].includes(`.${data.FileFormat.toLowerCase()}`)) { '.png'].includes(`.${data.FileFormat.toLowerCase()}`)) {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['picture_perview2'].$viewer.show() this.$refs['picture_perview3'].$viewer.show()
}) })
} }
if (['.pdf'].includes(`.${data.FileFormat.toLowerCase()}`)) { if (['.pdf'].includes(`.${data.FileFormat.toLowerCase()}`)) {