修复前端配置文件中后端地址不正确的问题
This commit is contained in:
parent
e1f76105e7
commit
9e7c791432
@ -1,19 +1,19 @@
|
||||
// prod
|
||||
// let wsPrefix;
|
||||
// if (window.location.protocol === 'https:') {
|
||||
// wsPrefix = 'wss:'
|
||||
// } else {
|
||||
// wsPrefix = 'ws:'
|
||||
// }
|
||||
//
|
||||
// export const server = '';
|
||||
// export const wsServer = wsPrefix + window.location.host;
|
||||
// export const prefix = window.location.protocol + '//' + window.location.host;
|
||||
let wsPrefix;
|
||||
if (window.location.protocol === 'https:') {
|
||||
wsPrefix = 'wss:'
|
||||
} else {
|
||||
wsPrefix = 'ws:'
|
||||
}
|
||||
|
||||
export const server = '';
|
||||
export const wsServer = wsPrefix + window.location.host;
|
||||
export const prefix = window.location.protocol + '//' + window.location.host;
|
||||
|
||||
// dev
|
||||
export const server = '//127.0.0.1:8088';
|
||||
export const wsServer = 'ws://127.0.0.1:8088';
|
||||
export const prefix = '';
|
||||
// export const server = '//127.0.0.1:8088';
|
||||
// export const wsServer = 'ws://127.0.0.1:8088';
|
||||
// export const prefix = '';
|
||||
|
||||
export const PROTOCOL_COLORS = {
|
||||
'rdp': 'red',
|
||||
|
Loading…
Reference in New Issue
Block a user