diff --git a/lib/app/store.js b/lib/app/store.js index 553ad93cac..d1e59efcd6 100644 --- a/lib/app/store.js +++ b/lib/app/store.js @@ -45,7 +45,9 @@ if (typeof storeData !== 'function') { // createStore export const createStore = storeData instanceof Function ? storeData : () => { - return new Vuex.Store(Object.assign({}, storeData, { + return new Vuex.Store(Object.assign({ + strict: (process.env.NODE_ENV !== 'production'), + }, storeData, { state: storeData.state instanceof Function ? storeData.state() : {} })) }