This commit is contained in:
suxiaoxin 2018-04-16 19:55:35 +08:00
parent 66a9d04e9c
commit bbd0e160ce
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
### v1.3.11
* 修复 v1.3.10 websocket 连接问题
* 修复运行报错问题
### v1.3.9
#### Feature
* 增加接口编辑返回数据预览

View File

@ -72,7 +72,7 @@ class InterfaceEdit extends Component {
//因后端 node 仅支持 ws 暂不支持 wss
let wsProtocol = location.protocol === 'https' ? 'ws' : 'ws';
try {
s = new WebSocket(wsProtocol + '://dd' + domain + '/api/interface/solve_conflict?id=' + this.props.match.params.actionId);
s = new WebSocket(wsProtocol + '://' + domain + '/api/interface/solve_conflict?id=' + this.props.match.params.actionId);
s.onopen = () => {
this.WebSocket = s;
}