This commit is contained in:
2022-07-07 13:33:31 +08:00
parent a227548f38
commit 847acd0390
6 changed files with 26 additions and 26 deletions

View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2022-03-07 15:31:13
* @LastEditors: zwq
* @LastEditTime: 2022-07-06 16:08:05
* @LastEditTime: 2022-07-07 10:50:49
* @Description:
-->
<template>
@@ -29,8 +29,7 @@ export default {
}
},
created () {
const baseurl = window.SITE_CONFIG.baseUrl
this.url = baseurl.substring(5, baseurl.length - 4)
this.url = window.SITE_CONFIG.wbUrl
this.initWebSocket()
},
destroyed () {
@@ -42,7 +41,7 @@ export default {
methods: {
initWebSocket () {
// 初始化weosocket
const path = `ws:${this.url}/qj/websocket/2`
const path = `ws://${this.url}/qj/websocket/2`
this.websock = new WebSocket(path)
this.websock.onmessage = this.websocketonmessage
this.websock.onopen = this.websocketonopen
@@ -76,7 +75,7 @@ export default {
<style lang="scss" scoped>
.main-body {
min-height: 88vh;
min-height: 100vh;
width: 100%;
background: url(~@/assets/img/board/1.png) center no-repeat;
background-size: cover;