mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-06 03:57:53 +08:00
fix[redirect]: miss query bug
This commit is contained in:
parent
0740bb36f7
commit
3277343804
@ -1,8 +1,9 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
const path = this.$route.params.path
|
const { params, query } = this.$route
|
||||||
this.$router.replace('/' + path)
|
const { path } = params
|
||||||
|
this.$router.replace({ path: '/' + path, query })
|
||||||
},
|
},
|
||||||
render: function(h) {
|
render: function(h) {
|
||||||
return h() // avoid warning message
|
return h() // avoid warning message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user