bhuh12 / vue-router-tab

Vue.js tab components, based on Vue Router.

Home Page:https://bhuh12.github.io/vue-router-tab/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change default rule

lombardifrancesco opened this issue · comments

Is possible to overwrite the default rule: "By default, pages from the same route opens the same tab"?
I wuold like to implement open new tab always on click over a route.

https://bhuh12.github.io/vue-router-tab/guide/essentials/rule.html#fullpath

const route = {
  path: '/page',
  component: MyPage,
  meta: {
    title: 'Page',
    key: 'fullPath'
  }
}
<a @click="$router.push(`/page?t=${+new Date()}`)">New Page</a>