Commit 629fa3d8 authored by chenqikuai's avatar chenqikuai

fix

parent 1c8f1835
......@@ -51,7 +51,11 @@ export default defineComponent({
connectionState.error = false;
initError.value = false;
const fmp = new FzmMessageProtocol(`ws://${window.location.host}/proxyWs/sub`);
let prefix = 'ws://';
if (window.location.protocol === 'https:') {
prefix = 'wss://'
}
const fmp = new FzmMessageProtocol(`${prefix}${window.location.host}/proxyWs/sub`);
const UserMsg = getUserMsg();
if (!UserMsg) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment