fix: OSS客户端直传

This commit is contained in:
2025-12-24 16:19:23 +08:00
parent 73f858fc07
commit d81c2da3ba
3 changed files with 6 additions and 6 deletions

View File

@@ -22,8 +22,8 @@ export function useWebSocket() {
try {
// const wsUrl = import.meta.env.VITE_WS_URL || "wss://g-ws.nailaoyun.cn/ws"
// const wsUrl = import.meta.env.VITE_WS_URL || 'ws://localhost:12080/ws';
const wsUrl = 'wss://api.ws.g.xiaokang88.com/ws';
const wsUrl = import.meta.env.VITE_WS_URL || 'ws://localhost:12080/ws';
// const wsUrl = 'wss://api.ws.g.xiaokang88.com/ws';
// const wsUrl = import.meta.env.VITE_WS_URL || "wss://g-ws.nailaoyun.cn/ws"
socket.value = new WebSocket(wsUrl);

View File

@@ -470,7 +470,7 @@ const handleAddPatientProductsToPrescription = async () => {
</Button>
<PatientList
v-if="leftShow"
:doctor-id="'39'"
:doctor-id="userStore.currentUser?.doctor_id"
@select-patient="handleSelectPatient"
class="patient-list-panel"
/>
@@ -482,7 +482,7 @@ const handleAddPatientProductsToPrescription = async () => {
<template v-if="viewMode === 'list'">
<PatientInfoPanel
:patient="selectedPatient"
:doctor-id="'39'"
:doctor-id="userStore.currentUser?.doctor_id"
@reception-success="handleReceptionSuccess"
@enter-chat="handleEnterChat"
class="patient-info-panel"

View File

@@ -20,8 +20,8 @@ export default defineConfig(async () => {
rewrite: (path) => path.replace(/^\/im-api/, ''),
// mock代理目标地址
// target: 'https://api.xiaokang88.com/api/admin/',
target: 'https://api.ws.g.xiaokang88.com/api/',
// target: 'http://localhost:12080/api/',
// target: 'https://api.ws.g.xiaokang88.com/api/',
target: 'http://localhost:12080/api/',
// target: 'http://api.xiaokang88.com/api/admin/',
ws: true,
},