Files
mayfly-go/mayfly_go_web/src/common/config.ts

9 lines
287 B
TypeScript
Raw Normal View History

const config = {
baseApiUrl: `${(window as any).globalConfig.BaseApiUrl}/api`,
2022-11-07 21:57:51 +08:00
baseWsUrl: `${(window as any).globalConfig.BaseWsUrl || `${location.protocol == 'https:' ? 'wss:' : 'ws:'}//${location.host}`}/api`,
// 系统版本
2022-12-05 21:45:35 +08:00
version: 'v1.3.1'
}
export default config