setting.js 413 B

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