From e69a6c9e015dd713d80031b92ec2cef15fdd0c13 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=86=8A=E7=8C=AB?=
<13581431+xiongmao1988@user.noreply.gitee.com>
Date: Mon, 19 Aug 2024 16:14:43 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/remote-manage/remote-control.vue | 2 +-
vite.config.ts | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/views/remote-manage/remote-control.vue b/src/views/remote-manage/remote-control.vue
index f85f147..8940917 100644
--- a/src/views/remote-manage/remote-control.vue
+++ b/src/views/remote-manage/remote-control.vue
@@ -42,7 +42,7 @@
患者信息
- ping:{{timeDiffPing}}
+ 当前延迟:{{timeDiffPing}}ms
连接远程控制
已控制
diff --git a/vite.config.ts b/vite.config.ts
index f14a5b9..4dc0ef1 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -24,16 +24,16 @@ export default defineConfig({
proxy: {
'/api': {
// target: 'http://localhost:9999', // 目标服务器地址
- target: 'http://localhost:6379', // 目标服务器地址
- // target: 'http://110.41.142.124:6379', // 目标服务器地址
+ //target: 'http://localhost:6379', // 目标服务器地址
+ target: 'http://110.41.142.124:6379', // 目标服务器地址
ws: true, // 是否启用 WebSocket
changeOrigin: true, // 是否修改请求头中的 Origin 字段
rewrite: (path) => path.replace(/^\/api/, ''),
},
'/socket.io': {
// target: 'ws://localhost:9999',
- target: 'ws://localhost:6379',
- // target: 'ws://110.41.142.124:6379',
+ //target: 'ws://localhost:6379',
+ target: 'ws://110.41.142.124:6379',
ws: true,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/socket.io/, ''),