fix: OSS客户端直传
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user