Skip to content

Commit c87b72f

Browse files
committed
fix: allow installation on extended Vue copies
1 parent 0cebc99 commit c87b72f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ function unifyObjectStyle (type, payload, options) {
459459
}
460460

461461
export function install (_Vue) {
462-
if (Vue) {
462+
if (Vue && _Vue === Vue) {
463463
if (process.env.NODE_ENV !== 'production') {
464464
console.error(
465465
'[vuex] already installed. Vue.use(Vuex) should be called only once.'

0 commit comments

Comments
 (0)