|
|
@ -8,14 +8,14 @@ |
|
|
|
</a-menu> |
|
|
|
</a-layout-sider> |
|
|
|
|
|
|
|
<a-layout :style="{ marginLeft: '0px' }"> |
|
|
|
<a-layout :style="{ marginLeft: '0px', height:'100vh'}"> |
|
|
|
<a-layout-content :style="{ maxHeight: '40px' }"> |
|
|
|
<!-- 显示消息 --> |
|
|
|
<input v-model="message" type="text" :style="{ width: '100%', height: '100%', color: messageColor }" |
|
|
|
@click="showMessageBoxList" placeholder="显示消息" /> |
|
|
|
</a-layout-content> |
|
|
|
|
|
|
|
<a-layout-content :style="{ overflow: 'auto',height:'100vh' }"> |
|
|
|
<a-layout-content :style="{ overflow: 'auto' }"> |
|
|
|
<div :style="{ padding: '15px' }"> |
|
|
|
<service-configuration :service-key="activeServiceKey"></service-configuration> |
|
|
|
</div> |
|
|
@ -89,7 +89,6 @@ function handleOpenChange(keys) { |
|
|
|
|
|
|
|
function setupEventWebSocket() { |
|
|
|
let ws = createWebSocket('event'); |
|
|
|
|
|
|
|
ws.onmessage = (event) => { |
|
|
|
let report = JSON.parse(event.data); |
|
|
|
console.info(report); |
|
|
@ -108,11 +107,11 @@ function setupEventWebSocket() { |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
ws.onclose = () => { |
|
|
|
setTimeout(() => { |
|
|
|
ws = createWebSocket('event'); |
|
|
|
}, 1000); |
|
|
|
}; |
|
|
|
// ws.onclose = () => { |
|
|
|
// setTimeout(() => { |
|
|
|
// ws.connect(); |
|
|
|
// }, 1000); |
|
|
|
// }; |
|
|
|
} |
|
|
|
|
|
|
|
function setupStateUpdateWebSocket() { |
|
|
@ -140,11 +139,11 @@ function setupStateUpdateWebSocket() { |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
ws.onclose = () => { |
|
|
|
setTimeout(() => { |
|
|
|
ws = createWebSocket('state'); |
|
|
|
}, 1000); |
|
|
|
}; |
|
|
|
// ws.onclose = () => { |
|
|
|
// setTimeout(() => { |
|
|
|
// ws = createWebSocket('state'); |
|
|
|
// }, 1000); |
|
|
|
// }; |
|
|
|
} |
|
|
|
|
|
|
|
function createWebSocket(type) { |
|
|
|