| 1 2 3 4 5 6 7 8 9 10 11 12 | 5x 15x 15x 15x 15x 15x 15x | import Vue from "vue";
export const redo = (store: any) => async (namespace: string = "") => {
await store.dispatch(`${namespace ? `${namespace}/` : ""}redo`);
await Vue.nextTick();
};
export const undo = (store: any) => async (namespace: string = "") => {
await store.dispatch(`${namespace ? `${namespace}/` : ""}undo`);
await Vue.nextTick();
};
|