修复用户、角色、权限、添加或修改报错时再次添加后关联数据重复的问题
This commit is contained in:
@@ -75,7 +75,8 @@ export default {
|
|||||||
},
|
},
|
||||||
connection(_this) {
|
connection(_this) {
|
||||||
// 建立连接对象,注意部署到线上后也要修改对应的地址
|
// 建立连接对象,注意部署到线上后也要修改对应的地址
|
||||||
const socket = new SockJS('http://localhost:/websocket?token=kl')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息
|
// const socket = new SockJS('http://localhost:/websocket?token=kl')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息
|
||||||
|
const socket = new SockJS('http://localhost:8000/websocket?token=kl')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息
|
||||||
// 获取STOMP子协议的客户端对象
|
// 获取STOMP子协议的客户端对象
|
||||||
this.stompClient = Stomp.over(socket)
|
this.stompClient = Stomp.over(socket)
|
||||||
// 定义客户端的认证信息,按需求配置
|
// 定义客户端的认证信息,按需求配置
|
||||||
|
|||||||
Reference in New Issue
Block a user