Skip to content

Commit 45edf7b

Browse files
committed
fix[redirect]: fix redirect bug in vue-devtool again
1 parent 2096ae1 commit 45edf7b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/views/redirect/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<script>
22
export default {
3-
beforeCreate() {
3+
created() {
44
const { params, query } = this.$route
55
const { path } = params
66
this.$router.replace({ path: '/' + path, query })
7-
return
87
},
98
render: function(h) {
109
return h() // avoid warning message

0 commit comments

Comments
 (0)