feat: 集群环境websocket消息

This commit is contained in:
fit2cloud-chenyw
2022-04-13 18:30:31 +08:00
parent d7521f8861
commit 0c16ca38e4
18 changed files with 355 additions and 36 deletions

View File

@@ -48,7 +48,7 @@
</div>
</div>
<div slot="reference">
<el-badge :value="visible ? paginationConfig.total : count" :hidden="!count && !paginationConfig.total" :max="99" class="item">
<el-badge :value="visible && !loading ? paginationConfig.total : count" :hidden="!count && !paginationConfig.total" :max="99" class="item">
<svg-icon class-name="notification" icon-class="notification" />
</el-badge>

View File

@@ -46,11 +46,12 @@ class DeWebsocket {
}
connection() {
const socket = new SockJS(this.ws_url)
/* const socket = new SockJS('http://localhost:8081' + this.ws_url) */
if (!this.isLoginStatu()) {
return
}
const socket = new SockJS(this.ws_url + '?userId=' + store.state.user.user.userId)
/* const socket = new SockJS('http://localhost:8081' + this.ws_url) */
this.client = Stomp.over(socket)
const heads = {
/* Authorization: '', */