From ecbdab9da9488cc58a1ac7064f9cffde4792fba4 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 28 六月 2024 09:51:01 +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