You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jin_ji_hu/src/views/index.vue

20 lines
317 B

<template></template>
<script>
import { mapGetters } from "vuex";
export default {
data() {
return {};
},
computed: {
...mapGetters(["firstRouter"]),
},
mounted() {
// console.log(this.firstRouter, "第一个路由");
this.$router.push(this.firstRouter);
},
};
</script>
<style></style>