File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
admin/src/views/api_excel Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ export default {
216
216
},
217
217
initWebSocket (id ) { // 初始化 weosocket
218
218
if (' WebSocket' in window ) {
219
- const url = ' ws://127.0.0.1 :5200?id=' + id
219
+ const url = ' ws://118.25.87.12 :5200?id=' + id
220
220
this .websock = new WebSocket (url)
221
221
this .websock .onmessage = this .onmessage
222
222
this .websock .onopen = this .onopen
@@ -238,8 +238,8 @@ export default {
238
238
onmessage (e ) { // 数据接收
239
239
console .log (e .data )
240
240
const data = JSON .parse (e .data )
241
- this .list [2 ].rate = parseInt (data .data .rate )
242
- console .log (this .list [2 ].rate )
241
+ // this.list[2].rate = parseInt(data.data.rate)
242
+ // console.log(this.list[2].rate)
243
243
console .log (data)
244
244
},
245
245
send (Data ) {
You can’t perform that action at this time.
0 commit comments