mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 13:04:57 +08:00
Compare commits
No commits in common. "f959c6bcc4a26eb93d01d9adc3041c373f8b9169" and "b5e110081c714f28be5b3d1c9f7ab0b0b79cc7c9" have entirely different histories.
f959c6bcc4
...
b5e110081c
|
@ -48,7 +48,7 @@ export const constantRoute = [
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/patients-manage/patients-manage',
|
path: '/patients-manage/patients-manage',
|
||||||
name: '患者管理2',
|
name: '患者管理',
|
||||||
component: () => import('@/views/patients-manage/patients-manage.vue'),
|
component: () => import('@/views/patients-manage/patients-manage.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -249,21 +249,7 @@ export const useRemoteWsStore = defineStore("remoteWs", {
|
||||||
patient.vitalWS.onmessage = undefined;
|
patient.vitalWS.onmessage = undefined;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
createChatConnect(name: string, id: string, date: string, index: number) {
|
|
||||||
if (!this.patient[name + id + date + index]) this.patient[name + id + date + index] = {}
|
|
||||||
const patient = this.patient[name + id + date + index]
|
|
||||||
if (!patient['chatWS']) {
|
|
||||||
patient['chatWS'] = new WebSocket(chatUrl)
|
|
||||||
patient.chatWS.onopen = function () {
|
|
||||||
patient.chatWS.send(JSON.stringify({
|
|
||||||
patientName: name,
|
|
||||||
idNum: id,
|
|
||||||
date: date,
|
|
||||||
msgType: "init"
|
|
||||||
}))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
sendMsg(name: string, id: string, date: string, msg: string, index: number, cb: any) {
|
sendMsg(name: string, id: string, date: string, msg: string, index: number, cb: any) {
|
||||||
const patient: any = this.patient[name + id + date + index]
|
const patient: any = this.patient[name + id + date + index]
|
||||||
if (patient) {
|
if (patient) {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,15 +26,15 @@ export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://127.0.0.1:6379', // 目标服务器地址
|
// target: 'http://127.0.0.1:6379', // 目标服务器地址
|
||||||
// target: 'http://110.41.142.124:6379', // 目标服务器地址
|
target: 'http://110.41.142.124:6379', // 目标服务器地址
|
||||||
ws: true, // 是否启用 WebSocket
|
ws: true, // 是否启用 WebSocket
|
||||||
changeOrigin: true, // 是否修改请求头中的 Origin 字段
|
changeOrigin: true, // 是否修改请求头中的 Origin 字段
|
||||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||||
},
|
},
|
||||||
'/socket.io': {
|
'/socket.io': {
|
||||||
target: 'ws://127.0.0.1:6379',
|
// target: 'ws://127.0.0.1:6379',
|
||||||
// target: 'ws://110.41.142.124:6379',
|
target: 'ws://110.41.142.124:6379',
|
||||||
ws: true,
|
ws: true,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/socket.io/, ''),
|
rewrite: (path) => path.replace(/^\/socket.io/, ''),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user