jeecg-boot 1.0版本发布

This commit is contained in:
zhangdaihao
2019-02-25 15:58:05 +08:00
parent 2897a52d1d
commit 3013925104
385 changed files with 60058 additions and 1 deletions

View File

@ -0,0 +1,37 @@
const VueAxios = {
vm: {},
// eslint-disable-next-line no-unused-vars
install(Vue, router = {}, instance) {
if (this.installed) {
return;
}
this.installed = true;
if (!instance) {
// eslint-disable-next-line no-console
console.error('You have to install axios');
return;
}
Vue.axios = instance;
Object.defineProperties(Vue.prototype, {
axios: {
get: function get() {
return instance;
}
},
$http: {
get: function get() {
return instance;
}
}
});
}
};
export {
VueAxios,
// eslint-disable-next-line no-undef
instance as axios
}