|
- import Vue from 'vue';
- /**
- * env文件里配置自定义运行菜单每一个js代表一个域名
- */
- const obj = process.env.ENV_PATH == undefined ? require('../env/dev.js') : require(process.env.ENV_PATH)
- const base = obj.baseUrl
- // http.js使用
- const baseUrl = `${base}/autoSR/api`;
- // config 使用
- const host = `${base}/autoSR/api`;
- const hosts = `${base}/`;
- const hostAdmin = `${base}/admin`;
- const domain = obj.domain || '';
-
- const iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式
-
- Vue.prototype.$domain = obj.domain || '';
- export {
- domain,
- baseUrl,
- host,
- hosts,
- iMServiceHost,
- base,
- hostAdmin
- }
|