From 21505bfef663ce50689d2e411ca15ce2f20728ba Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期二, 25 六月 2024 14:00:16 +0800 Subject: [PATCH] '' --- admin/src/components/operation/HiddenDangerParam.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/src/components/operation/HiddenDangerParam.vue b/admin/src/components/operation/HiddenDangerParam.vue index c0de303..f96d588 100644 --- a/admin/src/components/operation/HiddenDangerParam.vue +++ b/admin/src/components/operation/HiddenDangerParam.vue @@ -176,15 +176,15 @@ uploadAvatarSuccess (file) { console.log('file', file) const item = file.data[0] - if (['.mp4', '.avi', '.flv', '.wmv'].indexOf(item.imgaddr) === -1) { + if (['.mp4', '.avi', '.flv', '.wmv'].some(char => item.imgaddr.includes(char))) { this.fileList.push({ - type: 0, + type: 1, fileurl: item.imgaddr, fileurlFull: item.url }) } else { this.fileList.push({ - type: 1, + type: 0, fileurl: item.imgaddr, fileurlFull: item.url }) @@ -255,8 +255,8 @@ display: flex; flex-wrap: wrap; .item { - width: 90px; - max-height: 90px; + width: 140px; + max-height: 140px; margin-left: 10px; position: relative; .close{ @@ -269,7 +269,7 @@ cursor: pointer; } .img { - width: 90px; + width: 140px; max-height: 90px; } } -- Gitblit v1.9.3