Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export default function (Vue) {
const options = this.$options
// store injection
if (options.store) {
this.$store = options.store
this.$store = typeof options.store === 'function'
? options.store()
: options.store
} else if (options.parent && options.parent.$store) {
this.$store = options.parent.$store
}
Expand Down