0👍
Vuex plugins do not expose anything outside their context. They are made to hook into mutations while receiving the store object. Your undo
function would be better suited as an action within a store/module(s).
If you have several modules that need to make use of undo
, look at the section Module Reuse.
- [Vuejs]-Using of vue-router in the mixin
- [Vuejs]-Accordion only show one item at same time in vue js
Source:stackexchange.com