Skip to content
This repository was archived by the owner on May 12, 2020. It is now read-only.

Commit 704ef91

Browse files
committed
fix(stateSnapshot): should include global state in the stateSnapshot
1 parent a7f0893 commit 704ef91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/store/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const initialState = Object.keys(modules).reduce((snapshot, moduleName) => {
1818
snapshot[moduleName] = modules[moduleName].state
1919
return snapshot
2020
}, {})
21-
stateSnapshot.setItem(initialState)
21+
stateSnapshot.setItem(Object.assign(initialState, state))
2222

2323
/**
2424
* @description Vuex persisted state

0 commit comments

Comments
 (0)