setting.js 490 B

1234567891011121314151617
  1. // 请求接口地址 如果没有配置自动获取当前网址路径
  2. const VUE_APP_API_URL = process.env.VUE_APP_API_URL || `${location.origin}/adminapi`;
  3. const Setting = {
  4. // 路由前缀
  5. routePre: '/admin',
  6. // 商户路由前缀
  7. shoproutePre: '/mer',
  8. // 接口请求地址
  9. apiBaseURL: VUE_APP_API_URL,
  10. // 路由模式,可选值为 history 或 hash
  11. routerMode: 'history',
  12. // 页面切换时,是否显示模拟的进度条
  13. showProgressBar: true,
  14. };
  15. export default Setting;