diff --git a/src/store.js b/src/store.js index 9c76036e1..fce8d60ae 100644 --- a/src/store.js +++ b/src/store.js @@ -58,7 +58,11 @@ export class Store { resetStoreVM(this, state) // apply plugins - plugins.concat(devtoolPlugin).forEach(plugin => plugin(this)) + plugins.forEach(plugin => plugin(this)) + + if (Vue.config.devtools) { + devtoolPlugin(this) + } } get state () {