图片格式

This commit is contained in:
liuye
2023-06-19 10:12:11 +08:00
parent 4df8dba8d6
commit 05199221b8

View File

@@ -33,7 +33,7 @@ export default {
this.$instance.post(`/app/appcontentinfo/queryDetailById?id=${this.id}`).then(res=> {
if(res?.data) {
this.data = res.data
this.images = res.data.files.filter(e => (['jpeg', 'jpg', 'png'].includes(e.postfix.split('.')[1])))
this.images = res.data.files.filter(e => (['jpeg', 'jpg', 'png', 'JPG'].includes(e.postfix.split('.')[1])))
this.videos = res.data.files.filter(e => (['mp4','MP4', 'MOV'].includes(e.postfix.split('.')[1])))
}
})