修改
This commit is contained in:
14
src/views/redirect.vue
Normal file
14
src/views/redirect.vue
Normal file
@@ -0,0 +1,14 @@
|
||||
<script>
|
||||
export default {
|
||||
created() {
|
||||
const { params, query } = this.$route
|
||||
const { path } = params
|
||||
console.log('this.$route', this.$route);
|
||||
|
||||
this.$router.replace({ path: '/' + path, query })
|
||||
},
|
||||
render: function (h) {
|
||||
return h() // avoid warning message
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user