config.js 1.1 KB
// import store from '@/store/index'
// let BASE_URL = store.state.baseURL
// const MOCK_CONFIG_URL = 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
// const env = process.env.NODE_ENV
// https://oss-config.test.glsx.com.cn/mock/5f8fda237ec90706c0f89d05/service
// http://192.168.0.63:8880

const API = {
  getMockConfig() {
    console.log(MOCK_CONFIG_URL)
    return MOCK_CONFIG_URL + '/e-shield-trialrun_config'
  },
  LOGIN_ACTION: '/login_action'
}
const COMMON_API = {
  PROVINCE_LIST: '/publiccenter/basic/province/list'
}
const SPECIALSHOP_API = {
  SHOP_SEARCH: '/trialdrive/specialshop/search'
}
const MENU_API = {
  MENU_SEARCH: '/usercenter/menu/search',
  MENU_CHILDREN: '/usercenter/menu/children',
  MENU_ADD: '/usercenter/menu/add',
  MENU_EDIT: '/usercenter/menu/edit',
  MENU_DELETE: '/usercenter/menu/delete',
  MENU_INFO: '/usercenter/menu/info',
  MENU_PERMTREE: '/usercenter/menu/permtree'
}
const WORKLOG_API = {
  WORKLOG_SEARCH: '/loggincenter/loggin/search',
  WORKLOG_EXPORT: '/loggincenter/loggin/export'
}
export { API, WORKLOG_API, MENU_API, COMMON_API, SPECIALSHOP_API }