blx-easy-vuex
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -273,3 +273,3 @@ (function (global, factory) { | ||
if ((typeof window === "undefined" ? "undefined" : _typeof(window)) && window.Vue) { | ||
if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === 'object' && window.Vue && typeof window.Vue.use === 'function') { | ||
Vue.use({ | ||
@@ -276,0 +276,0 @@ install: install |
{ | ||
"name": "blx-easy-vuex", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"main": "dist/blx-easy-vuex.umd.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:bramblex/easy-vuex.git", |
@@ -85,3 +85,3 @@ | ||
// 遵循 Vue 的标准,如果有 window.Vue 则自动 use | ||
if (typeof window && window.Vue) { | ||
if (typeof window === 'object' && window.Vue && typeof window.Vue.use === 'function') { | ||
Vue.use({ install }) | ||
@@ -88,0 +88,0 @@ } |
12866