You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
915 B

// 在浏览器 window 对象中新建名为 APP 的容器变量, 用于存放平台的全局变量
window.APP = {};
// 全局配置
window.APP.configure ={
// 应用上下文路径
webContextPath: '[(@{/})]'.startsWith('[')? '/' : '[(@{/})]',
// 默认后端 API 请求的服务地址前缀
apiContextPaths: {
DEFAULT: '[(@{/})]'.startsWith('[')? 'http://localhost:8081/' : '[(@{/})]',
},
// 是否启用本地 mock
enableLocalMock : false,
// mock 请求响应时间(单位:毫秒)
localMockTimeout : 10,
// 是否启用使用远程服务端配置
enableRemoteConfigure : true,
// 是否首先使用本地路由
useLocaleRouterFirst : true,
// axios 配置
axios : {
baseURL: '',
timeout: 1000 * 60,
crossdomain: true,
basicAuth: {
enable: true,
username: 'admin',
password: 'admin',
}
}
}