fix[redirect]: miss query bug
This commit is contained in:
parent
0740bb36f7
commit
3277343804
1 changed files with 3 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
<script>
|
||||
export default {
|
||||
beforeCreate() {
|
||||
const path = this.$route.params.path
|
||||
this.$router.replace('/' + path)
|
||||
const { params, query } = this.$route
|
||||
const { path } = params
|
||||
this.$router.replace({ path: '/' + path, query })
|
||||
},
|
||||
render: function(h) {
|
||||
return h() // avoid warning message
|
||||
|
|
Loading…
Reference in a new issue