|
@@ -173,10 +173,10 @@ export default {
|
|
|
if (this.info.coverInfo.isShowCover === 1) {
|
|
|
if (this.info.coverInfo.coverSelect === "videoAndImg") {
|
|
|
if (
|
|
|
- this.info.coverInfo.coverPc === "" ||
|
|
|
- this.info.coverInfo.coverMo === "" ||
|
|
|
- this.info.coverInfo.videoPc === "" ||
|
|
|
- this.info.coverInfo.videoMo === ""
|
|
|
+ !this.info.coverInfo.coverPc ||
|
|
|
+ !this.info.coverInfo.coverMo ||
|
|
|
+ !this.info.coverInfo.videoPc ||
|
|
|
+ !this.info.coverInfo.videoMo
|
|
|
) {
|
|
|
this.$msg.warning(this.$i18n.t("gather.converinfo_no_valid"));
|
|
|
return false;
|
|
@@ -184,8 +184,10 @@ export default {
|
|
|
}
|
|
|
if (this.info.coverInfo.coverSelect === "video") {
|
|
|
if (
|
|
|
- this.info.coverInfo.videoPc === "" ||
|
|
|
- this.info.coverInfo.videoMo === ""
|
|
|
+ !this.info.coverInfo.videoPc ||
|
|
|
+ !this.info.coverInfo.videoMo ||
|
|
|
+ this.info.coverInfo.videoPc == "" ||
|
|
|
+ this.info.coverInfo.videoMo == ""
|
|
|
) {
|
|
|
this.$msg.warning(this.$i18n.t("gather.converinfo_no_valid"));
|
|
|
return false;
|
|
@@ -193,8 +195,10 @@ export default {
|
|
|
}
|
|
|
if (this.info.coverInfo.coverSelect === "img") {
|
|
|
if (
|
|
|
- this.info.coverInfo.coverPc === "" ||
|
|
|
- this.info.coverInfo.coverMo === ""
|
|
|
+ !this.info.coverInfo.coverPc ||
|
|
|
+ !this.info.coverInfo.coverMo ||
|
|
|
+ this.info.coverInfo.coverPc == "" ||
|
|
|
+ this.info.coverInfo.coverMo == ""
|
|
|
) {
|
|
|
this.$msg.warning(this.$i18n.t("gather.converinfo_no_valid"));
|
|
|
return false;
|
|
@@ -224,10 +228,9 @@ export default {
|
|
|
target.fodderId = [target.audio.id].map((i) => i);
|
|
|
break;
|
|
|
case "imageText":
|
|
|
- fodderId = target.imageTextInfo.imageList.reduce(
|
|
|
- (p, c) => p.concat(c["id"]),
|
|
|
- []
|
|
|
- ).map((i) => i);
|
|
|
+ fodderId = target.imageTextInfo.imageList
|
|
|
+ .reduce((p, c) => p.concat(c["id"]), [])
|
|
|
+ .map((i) => i);
|
|
|
target.imageTextInfo.audio.id &&
|
|
|
fodderId.push(target.imageTextInfo.audio.id);
|
|
|
target.fodderId = fodderId;
|