mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-10 05:31:08 +08:00
12 lines
208 B
Vue
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>
|