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

107
Views
Carga de archivos múltiples VueJS

Soy nuevo en VueJS y estaba tratando de cargar varias imágenes. El formulario se ve así. ingrese la descripción de la imagen aquí

Estoy usando Vue de CDN en un archivo blade. El problema es que cuando hago clic en eliminar, no se elimina el que se hizo clic, sino el último. Me di cuenta de que el que se hizo clic en realidad se elimina de los datos, pero el formulario no se actualiza así. Cualquier ayuda es apreciada. Mi código se ve así:

 Vue.createApp({ data() { return { images: [] } }, methods: { addField(images){ images.push({}); }, removeField(index, images){ images.splice(index, 1); } } }).mount('#picture') <input id="picture" type="file" class="form-control-file{{ $errors->has('picture') ? ' is-invalid' : '' }}" name="picture[]" accept="image/*" required> @if ($errors->has('picture')) <span class="invalid-feedback" role="alert"> <strong>{{ $errors->first('picture') }}</strong> </span> @endif
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!