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

176
Views
¿Cómo puedo ocultar la barra de desplazamiento principal en vuetify?

Tengo una aplicación creada con vuetify y quiero ocultar la barra de desplazamiento principal cuando mi cuadro de diálogo está abierto. Por ejemplo, hay dos barras de desplazamiento cuando el cuadro de diálogo está abierto: https://i.stack.imgur.com/a4xt7.png

Solo quiero ocultar la barra de desplazamiento principal solo cuando el cuadro de diálogo está abierto. Esto es lo que he probado:

 document.body.style.overflow = "hidden";

pero no funciona

Aquí es donde se está implementando el código:

 async mounted() { this.$store.commit("SET_LOADING", true); try { await this.loadData(); if (!this.item) { this.$showDialog({ title: "Something Wrong", body: `Member not found!`, }); this.closePage(); } else { // here document.body.style.overflow = "hidden"; await this.$store.dispatch("area/get"); this.role = this.item?.roles[0]; if ( this.item?.user && this.$store.state.user?.roles?.find( (x) => x == this.$roles.Admin ) ) this.email = this.item?.user.email; } } catch (error) { Promise.reject(error); } finally { this.$store.commit("SET_LOADING", false); } },
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!