修复了动态指令灰屏的问题
This commit is contained in:
@ -1,7 +1,14 @@
|
||||
// prod
|
||||
let wsPrefix;
|
||||
if (window.location.protocol === 'https') {
|
||||
wsPrefix = 'wss:'
|
||||
} else {
|
||||
wsPrefix = 'ws:'
|
||||
}
|
||||
|
||||
export const server = '';
|
||||
export const wsServer = '';
|
||||
export const prefix = '';
|
||||
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';
|
||||
|
Reference in New Issue
Block a user