|
@@ -2,8 +2,7 @@ export default function (Vue) {
|
|
const version = Number(Vue.version.split('.')[0])
|
|
const version = Number(Vue.version.split('.')[0])
|
|
|
|
|
|
if (version >= 2) {
|
|
if (version >= 2) {
|
|
- const usesInit = Vue.config._lifecycleHooks.indexOf('init') > -1
|
|
|
|
- Vue.mixin(usesInit ? { init: vuexInit } : { beforeCreate: vuexInit })
|
|
|
|
|
|
+ Vue.mixin({ beforeCreate: vuexInit })
|
|
} else {
|
|
} else {
|
|
// override init and inject vuex init procedure
|
|
// override init and inject vuex init procedure
|
|
// for 1.x backwards compatibility.
|
|
// for 1.x backwards compatibility.
|