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
1 changed files with 1 additions and 1 deletions

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 })