Newer
Older
h2sFront / src / views / redirect / index.vue
StephanieGitHub on 12 Aug 2021 249 bytes MOD: vue-cli2代码迁移
<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>