Skip to content

Commit 770841d

Browse files
committed
fix(axios.js): correct wrong template
1 parent 93bd83a commit 770841d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Diff for: generator/templates/plugins/axios.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ axiosClient.interceptors.response.use(
3232

3333
const extension = {
3434
install: (Vue) => {
35-
Vue.axios = axiosClient;
3635
window.axios = axiosClient;
37-
Object.defineProperties(Vue.prototype, {
38-
axios: axiosClient,
39-
$axios: axiosClient,
40-
});
36+
Vue.axios = axiosClient;
37+
Vue.prototype.axios = axiosClient;
38+
Vue.prototype.$axios = axiosClient;
4139
},
4240
};
4341

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-cli-plugin-axios-x",
33
"description": "The secure Axios plugin for Vue.js 2",
4-
"version": "0.2.5",
4+
"version": "0.2.6",
55
"author": "Star Inc.",
66
"license": "MIT",
77
"homepage": "https://github.com/star-inc/vue-cli-plugin-axios-x#readme",

0 commit comments

Comments
 (0)