Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Vuex Action in main.js for global Vue mixin #12

Open
Xanonymous-GitHub opened this issue Dec 30, 2019 · 0 comments
Open

Use Vuex Action in main.js for global Vue mixin #12

Xanonymous-GitHub opened this issue Dec 30, 2019 · 0 comments
Assignees
Labels
help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested

Comments

@Xanonymous-GitHub
Copy link
Member

when #7 using vuex action dispatch in main.js for Vue mixin, it got wrong:

//main.js
Vue.mixin({
  mounted() {
    this.$store.dispatch("setPageDynamicConfig", {
      name: "currentPage",
      data: this.$router.currentRoute.name
    });
    this.$store.dispatch("setPageDynamicConfig", {
      name: "selectedItemInCurrentPage",
      data: []
    });
    this.$store.dispatch("setPageDynamicConfig", {
      name: "selectionMode",
      data: false
    });
  }
});
@Xanonymous-GitHub Xanonymous-GitHub added help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested labels Dec 30, 2019
@Xanonymous-GitHub Xanonymous-GitHub self-assigned this Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant