fix(omiv): fix child.options inject store bug

This commit is contained in:
mrjzhang 2019-11-14 20:24:53 +08:00
parent 42db42bf3b
commit acdc30b0a1
1 changed files with 5 additions and 0 deletions

View File

@ -211,6 +211,11 @@ function applyMixin(Vue) {
this.$store = options.parent.$store
}
// FIXME: 修复不是在 main.js 中注入 store 的问题
if (this.$store && !store) {
reset(this.$store)
}
if (isMultiStore) {
if (use) {
let updatePath = {}