fix: 兼容旧版本图片格式

master
misworga831 2024-01-22 18:11:25 +08:00
parent 83beb81a3b
commit 8b15cfb0b1
2 changed files with 10 additions and 3 deletions

View File

@ -586,7 +586,6 @@ export default {
if (!this.imgList) {
this.imgList = [this.skuDetail.original];
}
console.log(this.imgList);
},
},

View File

@ -287,8 +287,7 @@
.ivu-table-overflowX {
overflow-x: hidden;
}
"
@mouseenter="handleMouseEnter">
">
<template slot="sn" slot-scope="{ row }">
<Input v-model="row.sn" clearable placeholder="请输入货号"
@on-change="updateSkuTable(row, 'sn')"/>
@ -530,6 +529,7 @@ export default {
total: 0,
goodsVideo: "",
showContent: false,
loadingVideo: false,
listImages: [],
newSkuValues: [],
contentImage: "",
@ -721,6 +721,13 @@ export default {
})
}
},
// ship
handleVideoMaxSize(file) {
this.$Notice.warning({
title: "超过文件大小限制",
desc: "视频大小不能超过10MB",
});
},
onAddSku(index) {
if (!this.newSkuValues[index]) {
this.$Message.error('请输入规格值')
@ -953,6 +960,7 @@ export default {
},
//
handleSuccessGoodsPicture(res, file) {
this.$Spin.hide();
if (file.response) {
file.url = file.response.result;
this.baseInfoForm.goodsGalleryFiles.push(file.url);