Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

164
Views
¿Hay alguna manera de esperar un valor de modelo v asíncrono sin usar un observador?

En este momento, estoy obteniendo asynchronous data de child components como dentro del elemento parent :

 <template layout="backend/cms-layout"> <div id="cms-gallery-create" class="cms-gallery-create"> <form @submit.prevent="submit" method="post" enctype="multipart/form-data"> <cms-editor v-model="form.body" @emitBody="form.body=$event"/> </form> </div> </template> <script setup> import CmsEditor from '../../components/backend/cms-editor.vue' import {reactive, watch} from "vue"; const form = reactive({ body: '' }) const submit = () => { watch(() => form.body, () => { // send http request }) } </script>

Básicamente, cuando se ejecuta la función de submit , un watcher está esperando un cambio en form.body para enviar la solicitud http.

¿Existe una forma más elegante de obtener form.data del niño que sea asynchronous , además de usar un observador? Esperaba algo como v-model:await .


about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!