|
@@ -110,7 +110,7 @@
|
110
|
110
|
return false;
|
111
|
111
|
}
|
112
|
112
|
"
|
113
|
|
- accept=".png,.jpeg,.jpg,.gif"
|
|
113
|
+ accept=".png,.jpeg,.jpg"
|
114
|
114
|
>
|
115
|
115
|
<div class="wallpaper_img_box" v-if="wallpaperInfo.hpath">
|
116
|
116
|
<img :src="$api.showImageUrl + wallpaperInfo.hpath" />
|
|
@@ -142,7 +142,7 @@
|
142
|
142
|
return false;
|
143
|
143
|
}
|
144
|
144
|
"
|
145
|
|
- accept=".png,.jpeg,.jpg,.gif"
|
|
145
|
+ accept=".png,.jpeg,.jpg"
|
146
|
146
|
>
|
147
|
147
|
<div class="wallpaper_img_box" v-if="wallpaperInfo.vpath">
|
148
|
148
|
<img :src="$api.showImageUrl + wallpaperInfo.vpath" />
|
|
@@ -164,7 +164,7 @@
|
164
|
164
|
</Spin>
|
165
|
165
|
</div>
|
166
|
166
|
<div class="wallpaper_tip">
|
167
|
|
- <div>支持格式:jpg、jpeg、gif、png</div>
|
|
167
|
+ <div>支持格式:jpg、jpeg、png</div>
|
168
|
168
|
<div>最大限制:2MB</div>
|
169
|
169
|
</div>
|
170
|
170
|
</div>
|
|
@@ -504,13 +504,8 @@ export default {
|
504
|
504
|
let str = file.name.split(".");
|
505
|
505
|
let suffix = str[str.length - 1];
|
506
|
506
|
suffix = suffix.toLowerCase();
|
507
|
|
- if (
|
508
|
|
- suffix !== "png" &&
|
509
|
|
- suffix !== "jpeg" &&
|
510
|
|
- suffix !== "jpg" &&
|
511
|
|
- suffix !== "gif"
|
512
|
|
- ) {
|
513
|
|
- this.$Message.warning("请上传png、jpeg、jpg、gif类型的图片");
|
|
507
|
+ if (suffix !== "png" && suffix !== "jpeg" && suffix !== "jpg") {
|
|
508
|
+ this.$Message.warning("请上传png、jpeg、jpg类型的图片");
|
514
|
509
|
return false;
|
515
|
510
|
}
|
516
|
511
|
if (size > 2) {
|
|
@@ -544,13 +539,8 @@ export default {
|
544
|
539
|
let str = file.name.split(".");
|
545
|
540
|
let suffix = str[str.length - 1];
|
546
|
541
|
suffix = suffix.toLowerCase();
|
547
|
|
- if (
|
548
|
|
- suffix !== "png" &&
|
549
|
|
- suffix !== "jpeg" &&
|
550
|
|
- suffix !== "jpg" &&
|
551
|
|
- suffix !== "gif"
|
552
|
|
- ) {
|
553
|
|
- this.$Message.warning("请上传png、jpeg、jpg、gif类型的图片");
|
|
542
|
+ if (suffix !== "png" && suffix !== "jpeg" && suffix !== "jpg") {
|
|
543
|
+ this.$Message.warning("请上传png、jpeg、jpg类型的图片");
|
554
|
544
|
return false;
|
555
|
545
|
}
|
556
|
546
|
if (size > 2) {
|