From b35cc3b6de2625a1035a668b655ce887fddd59c0 Mon Sep 17 00:00:00 2001 From: elliott <382696293@qq.com> Date: Tue, 27 Feb 2024 17:16:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=BF=AE=E6=94=B9=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flossom-ui/src/views/system/mode/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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;