zhangxiaoxu123
2022-07-28 34e6d3a803c50fc30c7cded69658562a437afaf5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Vue from "vue"
 
// Vue继承
import _g from './global.js'
copyFuns()
/**
 * @name 复制对象到Vue的原型上
 */
function copyFuns(){
    let keys = Object.keys(_g)
    keys.forEach(ele=>{
        Vue.prototype[ele] = _g[ele]
    })
}