vue-router 刷新当前页面

设置route

{
  path:'/redirect/:path*',
  component: () =>import('@/views/redirect/index'),
}

跳转页面页面内容


刷新方法

refresh() {
    const { fullPath } = this.$route
    this.$router.replace({
       path: '/redirect' + fullPath
    })
},

你可能感兴趣的:(vue-router 刷新当前页面)