Sign in

何博文 / trash · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • trash
  • trash-ui
  • src
  • views
  • redirect.vue
  • init
    c6423593
    youxiw2000 authored
    2023-04-17 10:05:33 +0800  
    Browse Code »
redirect.vue 249 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12
<script>
export default {
  created() {
    const { params, query } = this.$route
    const { path } = params
    this.$router.replace({ path: '/' + path, query })
  },
  render: function(h) {
    return h() // avoid warning message
  }
}
</script>