index.vue 314 B

12345678910111213141516
  1. <template>
  2. <div />
  3. </template>
  4. <script>
  5. import { mapGetters } from 'vuex'
  6. export default {
  7. computed: {
  8. ...mapGetters(['proxyState'])
  9. },
  10. created() {
  11. const path = this.proxyState ? '/club' : '/supplier'
  12. console.log(this.$store.getters)
  13. this.$router.push(path)
  14. }
  15. }
  16. </script>