index.vue 277 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 <script> export default { created() { const { params, query } = this.$route let { path } = params path = path ? path : '' this.$router.replace({ path: '/' + path, query }) }, render: function (h) { return h() // avoid warning message } } </script>