1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 05:31:08 +08:00
2018-08-29 14:58:38 +08:00

12 lines
208 B
Vue

<script>
export default {
beforeCreate() {
const path = this.$route.params.path
this.$router.replace('/' + path)
},
render: function(h) {
return h() // avoid warning message
}
}
</script>