[Vuejs]-Using of vue-router in the mixin

0👍

How about

export default {
  methods: {
    routeToURL: (router, itemUrl) => {
      router.push({ itemUrl })
    }
  }
}

and

<v-list-tile v-else :key="item.text" @click="routeToURL($router, item.url)">

Leave a comment