zhangwenjian 5 years ago
parent
commit
b0084b3e9e
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/views/redirect/index.vue

+ 12 - 0
src/views/redirect/index.vue

@@ -0,0 +1,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>