58 Star 121 Fork 29

Neho / EasyMall

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.js 973 Bytes
一键复制 编辑 原始数据 按行查看 历史
import {http} from '../service/http-service/index'
import {httpAll} from '../service/http-service/index'
import native from '../service/wechat-native/index'
import computed from './plugin-computed'
import directives from './plugin-directives'
import filters from './plugin-filters'
import methods from './plugin-methods'
export default {
install(Vue) {
Vue.prototype.$http = http;
Vue.prototype.$httpAll = httpAll;
Vue.prototype.$native = native;
Vue.mixin({
/*
* 对于全局高度依赖的vuex数据,把他作为每个组组件公用计算属性是一个方便的做法
* */
computed: computed,
/*
* 全局方法
* */
methods: methods,
/*
* 全局指令
* */
directives: directives,
/*
* 过滤器
* */
filters: filters
})
}
}
JavaScript
1
https://gitee.com/Daniel_Deng_Haibiao/EasyShop.git
git@gitee.com:Daniel_Deng_Haibiao/EasyShop.git
Daniel_Deng_Haibiao
EasyShop
EasyMall
master

搜索帮助