Quiero agregar una función para evitar que el botón Enviar envíe datos al servidor si hay entradas vacías. Escribí una función de formulario de verificación para verificar si todas las entradas no están vacías, pero no sé cómo puedo insertar esta función dentro de la función createReport
checkForm: function (e) { if (this.tops && this.bottoms && this.build && this.wallNumber &&this.authors ) { return true; } else { return false } };mi html
<v-btn width="100%" class="primary" :loading="isbuildGenerating" @submit="createReport(true)">Generate</v-btn>secuencia de comandos java
createReport: function (isCraft=true) { this.$refs.form.validate() this.$emit('buildGenerated', null) this.isbuildGenerated = true this.isbuildGenerated = false let jsonData = { build:this.build, wallNumber:this.wallNumber, time:this.time, bottoms:this.bottoms tops:this.tops authors:this.authors } this.$axios.post(this.$backendUrl + '/buildoperations', jsonData) .then(response => { this.pdfData = { data: response.data } this.$emit('pdfGenerated', this.pdfData) this.isbuildGenerated = true this.isbuildGenerating = false }) }