diff --git a/flossom-ui/src/views/system/mode/index.vue b/flossom-ui/src/views/system/mode/index.vue index 8ff5f60..922273b 100644 --- a/flossom-ui/src/views/system/mode/index.vue +++ b/flossom-ui/src/views/system/mode/index.vue @@ -720,10 +720,10 @@ export default { let serverImageFlag = false; if (this.form.serviceData.length > 0) { this.form.serviceData.forEach(data => { - if(!data.startTimeArray) { + if(data.startTimeArray.length == 0) { flag = true; } - if (!data.startSourceArray || !data.stopSourceArray) { + if (!data.startSourceArray.length == 0 || !data.stopSourceArray.length == 0) { serverImageFlag = true; } }) @@ -742,7 +742,8 @@ export default { let effectContent = false; if (this.form.combineData.length>0){ this.form.combineData.forEach(data => { - if (!data.technologyArray) { + console.log("----"+data.technologyArray) + if (data.technologyArray.length == 0) { technologyFlag = true; } if (!data.effectContent) { @@ -755,7 +756,7 @@ export default { return; } } - + console.log(this.form.combineData) if (technologyFlag) { this.$message.error("使用技术不能为空"); return;