1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-05 19:41:51 +08:00

fix[redirect]: fix redirect bug in vue-devtool again

This commit is contained in:
Pan 2019-05-13 17:32:53 +08:00
parent b6aa00d5de
commit 5f536fdfc4

View File

@ -1,6 +1,6 @@
<script>
export default {
beforeCreate() {
created() {
const { params, query } = this.$route
const { path } = params
this.$router.replace({ path: '/' + path, query })