diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 6200152..0c47853 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -153,7 +153,7 @@ export default { }, initSocket ({ id, account }) { // 实例化socket - this.socket = new WebSocket(`${Setting.isTest ? 'ws' : 'wss'}://${Setting.isDev ? '192.168.31.51' : location.host}/nakadai/websocket/${id}/${account}`) + this.socket = new WebSocket(`${Setting.isTest ? 'ws' : 'wss'}://${Setting.isDev ? '192.168.31.51:9100' : location.host}/nakadai/websocket/${id}/${account}`) // this.socket = new WebSocket(`ws://121.37.12.51:9100/nakadai/websocket/${id}/${account}`) // 监听socket连接 this.socket.onopen = this.open; diff --git a/src/pages/achievement/info/course.vue b/src/pages/achievement/info/course.vue index e6d28d0..7037925 100644 --- a/src/pages/achievement/info/course.vue +++ b/src/pages/achievement/info/course.vue @@ -30,11 +30,11 @@
实验最高分
-{{ maxScore }}
+{{ maxScore || 0 }}
实验最低分
-{{ minScore }}
+{{ minScore || 0 }}