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

How to use dialog in vuex modules or other not vue files? #130

Open
MoondanceZ opened this issue Apr 26, 2021 · 1 comment
Open

How to use dialog in vuex modules or other not vue files? #130

MoondanceZ opened this issue Apr 26, 2021 · 1 comment

Comments

@MoondanceZ
Copy link

Hi,
I want to use dialog in vuex
use this.$dialog, but $dialog undefined.

@laurent-brisbois
Copy link

laurent-brisbois commented May 17, 2021

Hello !

If you have a non-arrowed method in your store like this :

mutations: {
  MY_METHOD (state) {
   // You can try the following :
   this._vm.$dialog(...)
  }
}

this._vm will point to your Vue instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants