|
@@ -1,7 +1,7 @@
|
|
import { STORAGE_KEY } from './index'
|
|
import { STORAGE_KEY } from './index'
|
|
|
|
|
|
export default [{
|
|
export default [{
|
|
- after: function (action, state) {
|
|
|
|
- localStorage.setItem(STORAGE_KEY, JSON.stringify(state.todos))
|
|
|
|
|
|
+ after: function (mutation, { todos }) {
|
|
|
|
+ localStorage.setItem(STORAGE_KEY, JSON.stringify(todos))
|
|
}
|
|
}
|
|
}]
|
|
}]
|