Skip to content

Commit

Permalink
fix[redirect]: fix redirect bug in vue-devtool
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed May 12, 2019
1 parent 3a45434 commit 146db91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/redirect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default {
const { params, query } = this.$route
const { path } = params
this.$router.replace({ path: '/' + path, query })
return
},
render: function(h) {
return h() // avoid warning message
Expand Down

2 comments on commit 146db91

@TY-LIU
Copy link

@TY-LIU TY-LIU commented on 146db91 May 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里加return没意义,加了问题仍然没解决,而且eslint会报(no-useless-return)的错,调试工具又不能关,把beforeCreate改成created完美解决 @PanJiaChen

@PanJiaChen
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢提示,我又改了一下。

Please sign in to comment.