pc-master #268

Merged
xiaomeng merged 3 commits from pc-master into portal 2025-07-31 03:11:14 +00:00
27 changed files with 49 additions and 4 deletions

View File

@ -188,9 +188,14 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
this.$refs.fileInput.value = "";
this.$message.error(res.data.msg);
} }
}) }).catch((err) => {
this.loading.close()
this.$refs.fileInput.value = "";
this.$message.error("插入图片失败");
});
}; };
reader.readAsArrayBuffer(file); reader.readAsArrayBuffer(file);

View File

@ -704,9 +704,14 @@ changeAddModel3(){
} }
} else { } else {
this.$refs.fileInput1.value = '';
this.$message.error(res.data.msg);
} }
}) }).catch((err) => {
this.loading.close()
this.$refs.fileInput1.value = '';
this.$message.error("插入图片失败");
});
}; };
reader.readAsArrayBuffer(file); reader.readAsArrayBuffer(file);

View File

@ -375,8 +375,13 @@ export default {
this.nowData1.hls = res.data.msg; this.nowData1.hls = res.data.msg;
this.$refs.fileInput1.value = ""; this.$refs.fileInput1.value = "";
} else { } else {
this.$refs.fileInput1.value = "";
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
} }
}).catch((err) => {
this.loading.close()
this.$refs.fileInput1.value = "";
this.$message.error("插入图片失败");
}); });
}; };
reader.readAsArrayBuffer(file); reader.readAsArrayBuffer(file);

View File

@ -275,9 +275,11 @@ export default {
this.$refs.fileInput.value = ""; this.$refs.fileInput.value = "";
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
this.$refs.fileInput.value = "";
} }
}).catch((err) => { }).catch((err) => {
this.loading = false; this.loading = false;
this.$refs.fileInput.value = "";
this.$message.error("插入图片失败"); this.$message.error("插入图片失败");
}); });
}; };

View File

@ -287,9 +287,11 @@ detailedIntroductionTextEnTitle:'',
this.$refs.fileInput.value = ""; this.$refs.fileInput.value = "";
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
this.$refs.fileInput.value = "";
} }
}).catch((err) => { }).catch((err) => {
this.loading = false; this.loading = false;
this.$refs.fileInput.value = "";
this.$message.error("插入图片失败"); this.$message.error("插入图片失败");
}); });
}; };

View File

@ -265,9 +265,11 @@ detailedIntroductionTextEnTitle:'',
this.$refs.fileInput.value = ""; this.$refs.fileInput.value = "";
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
this.$refs.fileInput.value = "";
} }
}).catch((err) => { }).catch((err) => {
this.loading = false; this.loading = false;
this.$refs.fileInput.value = "";
this.$message.error("插入图片失败"); this.$message.error("插入图片失败");
}); });
}; };

View File

@ -453,9 +453,11 @@ export default {
this.$refs.fileInput.value = ""; this.$refs.fileInput.value = "";
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
this.$refs.fileInput.value = "";
} }
}).catch((err) => { }).catch((err) => {
this.loading = false; this.loading = false;
this.$refs.fileInput.value = "";
this.$message.error("插入图片失败"); this.$message.error("插入图片失败");
}); });
}; };

View File

@ -590,8 +590,10 @@ productId: "",
this.$refs.fileInput1.value = ""; this.$refs.fileInput1.value = "";
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
this.$refs.fileInput.value = "";
} }
}).catch((err) => { }).catch((err) => {
this.$refs.fileInput.value = "";
this.loading = false; this.loading = false;
this.$message.error("插入图片失败"); this.$message.error("插入图片失败");
}); });

View File

@ -247,6 +247,8 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -135,6 +135,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -169,6 +169,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -150,6 +150,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -177,6 +177,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -133,6 +133,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -294,6 +294,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -153,6 +153,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -153,6 +153,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -161,6 +161,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -229,6 +229,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -242,6 +242,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -149,6 +149,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -255,6 +255,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -229,6 +229,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -229,6 +229,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -203,6 +203,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -149,6 +149,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }

View File

@ -249,6 +249,7 @@ export default {
this.$refs.fileInput.value = ''; this.$refs.fileInput.value = '';
} else { } else {
console.log(null); console.log(null);
this.$refs.fileInput.value = '';
} }
} }