马宇豪
2024-10-11 bd60fa52fe36c8444e89f3c85dae1201e4c399a8
src/views/redirect.vue
@@ -1,6 +1,7 @@
<script>
export default {
  created() {
    console.log(this.$store,'rout')
    const { params, query } = this.$route
    const { path } = params
    this.$router.replace({ path: '/' + path, query })