[Vuejs]-How to use router in actions.js of vuex?

3👍

Move router declaration to separate file and export it. Then import in main file and any other file which you wish to use it. The api is the same as for $router property on vue prototype.

👤Eggy

Leave a comment