mirror of
https://github.com/dataease/dataease.git
synced 2026-05-24 06:18:10 +08:00
feat: 集群环境websocket消息
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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: '', */
|
||||
|
||||
Reference in New Issue
Block a user