图片格式
This commit is contained in:
@@ -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])))
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user