mirror of
https://github.com/veops/cmdb.git
synced 2025-08-09 20:35:50 +08:00
前后端全面升级
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const VueAxios = {
|
||||
vm: {},
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
install (Vue, instance) {
|
||||
install(Vue, instance) {
|
||||
if (this.installed) {
|
||||
return
|
||||
}
|
||||
@@ -14,15 +14,14 @@ const VueAxios = {
|
||||
}
|
||||
|
||||
Vue.axios = instance
|
||||
|
||||
Object.defineProperties(Vue.prototype, {
|
||||
axios: {
|
||||
get: function get () {
|
||||
get: function get() {
|
||||
return instance
|
||||
}
|
||||
},
|
||||
$http: {
|
||||
get: function get () {
|
||||
get: function get() {
|
||||
return instance
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user