Skip to content

Commit

Permalink
fix: allow installation on extended Vue copies
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 25, 2017
1 parent 0cebc99 commit c87b72f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ function unifyObjectStyle (type, payload, options) {
}

export function install (_Vue) {
if (Vue) {
if (Vue && _Vue === Vue) {
if (process.env.NODE_ENV !== 'production') {
console.error(
'[vuex] already installed. Vue.use(Vuex) should be called only once.'
Expand Down

0 comments on commit c87b72f

Please sign in to comment.