| 1234567891011121314151617181920 |
- import BaseTool from './tool';
- import DictCache from './dict';
- import { GlobalConstant, Constant } from '@/constant';
- import * as http from '@/api/index';
- import Message from '@/utils/message';
- import LOG from '@/utils/log';
- export default {
- // Vue.js的插件应当有一个公开方法 install。这个方法的第一个参数是 Vue 构造器,第二个参数是一个可选的选项对象。
- vm: {},
- install: function (Vue) {
- Vue.prototype.$BaseTool = BaseTool;
- Vue.prototype.$DictCache = DictCache;
- Vue.prototype.$GlobalConstant = GlobalConstant;
- Vue.prototype.$Constant = Constant;
- Vue.prototype.$Http = http;
- Vue.prototype.$Message = Message;
- Vue.prototype.$Log = LOG;
- }
- };
|