修改webscoket接口为手机号

This commit is contained in:
fengachen
2021-09-29 16:37:20 +08:00
parent 1b33c68136
commit f0448340b3
3 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -180,8 +180,9 @@
initWebSocket: function () {
// WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https
var userId = store.getters.userInfo.id
var url = window._CONFIG['domianWebSocketURL'].replace('https://','wss://').replace('http://','ws://')+'/websocket/'+userId
var userPhone = store.getters.userInfo.phone
console.log('store.getters.userInfo',store.getters.userInfo)
var url = window._CONFIG['domianWebSocketURL'].replace('https://','wss://').replace('http://','ws://')+'/websocket/'+userPhone
//console.log(url);
this.websock = new WebSocket(url)
this.websock.onopen = this.websocketOnopen
@@ -28,7 +28,7 @@
</a-form-item>
</a-col>
<a-col :xxl="7" :xl="10" :md="10" :sm="24">
<a-form-item label="提醒时间">
<a-form-item label="会议时间">
<j-date
placeholder="请选择开始日期"
class="query-group-cust"
@@ -162,6 +162,7 @@ export default {
handleDetail: function (record) {
this.$refs.sysAnnouncementModal.detail(record)
this.$refs.sysAnnouncementModal.title = '查看'
},
showAnnouncement(record) {
putAction(this.url.editCementSend, {anntId: record.anntId}).then((res) => {