|
@@ -1227,6 +1227,7 @@ export default {
|
|
|
async changeSelectedPicOrUnSelectedPic(event, isAddButton, position) {
|
|
|
var that = this;
|
|
|
let files = event.target.files;
|
|
|
+ console.log("上传按钮图片",files)
|
|
|
if (!files.length) {
|
|
|
return false;
|
|
|
}
|
|
@@ -1278,11 +1279,13 @@ export default {
|
|
|
}
|
|
|
);
|
|
|
} else if (files.length > 1) {
|
|
|
+
|
|
|
http.uploadMaterielFile(
|
|
|
file,
|
|
|
function(res) {
|
|
|
that.buttonData.itemId = that.itemId;
|
|
|
that.buttonData.isButton = true;
|
|
|
+ console.log("当前图片对象",files[0])
|
|
|
if (res.endsWith(files[0].name)) {
|
|
|
that.buttonData.backgroundUnselectedImg = res;
|
|
|
} else if (res.endsWith(files[1].name)) {
|