We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93bd83a commit 770841dCopy full SHA for 770841d
generator/templates/plugins/axios.js
@@ -32,12 +32,10 @@ axiosClient.interceptors.response.use(
32
33
const extension = {
34
install: (Vue) => {
35
- Vue.axios = axiosClient;
36
window.axios = axiosClient;
37
- Object.defineProperties(Vue.prototype, {
38
- axios: axiosClient,
39
- $axios: axiosClient,
40
- });
+ Vue.axios = axiosClient;
+ Vue.prototype.axios = axiosClient;
+ Vue.prototype.$axios = axiosClient;
41
},
42
};
43
package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "vue-cli-plugin-axios-x",
3
"description": "The secure Axios plugin for Vue.js 2",
4
- "version": "0.2.5",
+ "version": "0.2.6",
5
"author": "Star Inc.",
6
"license": "MIT",
7
"homepage": "https://github.com/star-inc/vue-cli-plugin-axios-x#readme",
0 commit comments