添加按钮

This commit is contained in:
熊猫 2024-08-19 16:14:43 +08:00
parent 49359fc86e
commit e69a6c9e01
2 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@
</el-text>
</el-space>
<el-button color="#C77000" @click="viewPatientInfo">患者信息</el-button>
<el-button type="text" color="#C77000">ping{{timeDiffPing}}</el-button>
<el-button type="text" color="#C77000">当前延迟{{timeDiffPing}}ms</el-button>
<el-button color="#C77000" @click="connectionUnity('1')" v-if="!whetherControl">连接远程控制</el-button>
<template v-else>
<el-button color="#C77000">已控制</el-button>

View File

@ -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/, ''),