diff --git a/src/router/routes.ts b/src/router/routes.ts index 6683d99..5ecf842 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -48,7 +48,7 @@ export const constantRoute = [ children: [ { path: '/patients-manage/patients-manage', - name: '患者管理', + name: '患者管理111', component: () => import('@/views/patients-manage/patients-manage.vue'), }, { diff --git a/src/stores/remote-ws-store.ts b/src/stores/remote-ws-store.ts index 7a82a5d..f19d6d6 100644 --- a/src/stores/remote-ws-store.ts +++ b/src/stores/remote-ws-store.ts @@ -3,9 +3,13 @@ import {Session} from "@/utils/storage"; import {ElMessage, ElMessageBox} from "element-plus"; // 本地调试版本: -const vitalUrl = "ws://" + window.location.host + "/socket.io/admin/rax/vitalSignsMedicine?token=" + Session.getToken() +// const vitalUrl = "ws://" + window.location.host + "/socket.io/admin/rax/vitalSignsMedicine?token=" + Session.getToken() +// // const medicineUrl = "ws://" + window.location.host + "/socket.io/admin/rax/addMedicine?token=" + Session.getToken() +// const chatUrl = "ws://" + window.location.host + "/socket.io/admin/rax/chatRoom?token=" + Session.getToken() + +const vitalUrl = "/socket.io/admin/rax/vitalSignsMedicine?token=" + Session.getToken() // const medicineUrl = "ws://" + window.location.host + "/socket.io/admin/rax/addMedicine?token=" + Session.getToken() -const chatUrl = "ws://" + window.location.host + "/socket.io/admin/rax/chatRoom?token=" + Session.getToken() +const chatUrl = "/socket.io/admin/rax/chatRoom?token=" + Session.getToken() // 服务器部署版本 diff --git a/src/views/remote-manage/remote-control.vue b/src/views/remote-manage/remote-control.vue index 36bcc67..5494bf5 100644 --- a/src/views/remote-manage/remote-control.vue +++ b/src/views/remote-manage/remote-control.vue @@ -341,7 +341,8 @@ const subscribeVital = () => { const data = JSON.parse(res.data); // 1 2 3 4 if (data.vitalSignsList != null) { - updateMedicineTable(data.aiMedicineList[0], undefined); + // updateMedicineTable(data.aiMedicineList[0], undefined); + updateMedicineTable(data.aiMedicine, undefined); chartDom1.value.updateChartData(data.vitalSignsList); chartDom2.value.updateChartData(data.vitalSignsList); chartDom3.value.updateChartData(data.vitalSignsList);