Skip to content

Commit b3164fc

Browse files
committed
feat: add check install
1 parent 146474c commit b3164fc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

dist/vue-axios.es5.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1515
if (plugin.installed) {
1616
return;
1717
}
18+
plugin.installed = true;
1819

1920
if (!axios) {
2021
console.error('You have to install axios');

dist/vue-axios.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function plugin(Vue, axios) {
1111
if (plugin.installed) {
1212
return
1313
}
14+
plugin.installed = true
1415

1516
if (!axios) {
1617
console.error('You have to install axios')

0 commit comments

Comments
 (0)