Skip to content

Commit 32e5a5d

Browse files
committed
fix: install in window
1 parent bd33f61 commit 32e5a5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ function plugin(Vue, axios) {
8585
});
8686
}
8787

88-
if (typeof window !== 'undefined' && window.Vue) {
89-
window.Vue.use(plugin);
88+
if (typeof window !== 'undefined' && window.Vue && window.axios) {
89+
window.Vue.use(plugin, window.axios);
9090
}
9191

9292
export default plugin;

0 commit comments

Comments
 (0)