TerryZ / v-dialogs

A simple style useful dialog component collection for Vue
https://terryz.github.io/docs-vue3/dialog/
MIT License
130 stars 27 forks source link

this.$route #26

Closed RezaErfani67 closed 4 years ago

RezaErfani67 commented 4 years ago

this.$route gives error when i work with modal

TerryZ commented 4 years ago

Try pass $route data into Modal

this.$dlg.modal(page, {
  params: {
    route: this.$route
  }
})

The page vue file content

export default {
  props: {
    route: Object
  },
  mounted () {
    console.dir(this.route)
  }
}
RezaErfani67 commented 4 years ago

thank you