修复了动态指令灰屏的问题

This commit is contained in:
dushixiang
2021-01-09 12:02:46 +08:00
parent 52beffd9c1
commit df65341193
7 changed files with 63 additions and 56 deletions

View File

@ -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';