// 挂载变量
import {
	BASE_URL,
	UPLOAD_URL,
	UPLOAD_BASE,
	SOCKET_URL,
	IMG_URL,
	imgurl,
	H5_URL,
	WORD_URL,LAWYER_URL,LAWYER_URL_FG,
} from '../env.js';
import store from '@/common/store';
import tools from '@/common/utils/tools'
import scan from '@/common/utils/scan'
// mixin混入
import mixin from '@/common/mixins';

const install = Vue => {
	Vue.prototype.$BASE_URL = BASE_URL;
	Vue.prototype.$SOCKET_URL = SOCKET_URL;
	Vue.prototype.$UPLOAD_URL = UPLOAD_URL;
	Vue.prototype.$UPLOAD_BASE = UPLOAD_BASE;
	Vue.prototype.$IMG_URL = IMG_URL;
	Vue.prototype.$imgurl = imgurl;
	Vue.prototype.$H5_URL = H5_URL;
	Vue.prototype.$WORD_URL = WORD_URL;
	Vue.prototype.$LAWYER_URL = LAWYER_URL;
	Vue.prototype.$LAWYER_URL_FG = LAWYER_URL_FG;
	// 挂载工具函数
	Vue.prototype.$tools = tools;
	Vue.prototype.$scan = scan;
	Vue.mixin(mixin);
}

export default {
	install
}