ต่อ socket กับ server
This commit is contained in:
parent
efe7ab6b78
commit
8de2743eb1
4 changed files with 221 additions and 49 deletions
|
|
@ -35,8 +35,7 @@ const config = ref<any>({
|
|||
LINK_EVALUATE_PUBLISH: "https://bma-ehr-publish.frappet.synology.me",
|
||||
API_REPORT_TEMPLATE_URI:
|
||||
"https://report-server.frappet.synology.me/api/v1/report-template",
|
||||
API_SUPPORT_URI: "http://192.168.1.10:3000/api/v1/support",
|
||||
API_SUPPORT_SOCKET: "http://192.168.1.10:3000/",
|
||||
API_SUPPORT_URI: "https://bma-ehr.frappet.synology.me/api/v1/support",
|
||||
},
|
||||
test: {
|
||||
API_URI: "http://localhost:5010/api/v1",
|
||||
|
|
@ -61,13 +60,11 @@ const config = ref<any>({
|
|||
API_REPORT2_URI: `${window.location.protocol}//${window.location.host}/api/v2`,
|
||||
LINK_EVALUATE_PUBLISH: apiUrlConfigPublish,
|
||||
API_REPORT_TEMPLATE_URI: apiUrlConfigReport,
|
||||
API_SUPPORT_URI: `${window.location.protocol}//${window.location.host}/api/v1/support`,
|
||||
},
|
||||
});
|
||||
|
||||
const API_SUPPORT_URI = ref<string>(config.value[env.value].API_SUPPORT_URI);
|
||||
const API_SUPPORT_SOCKET = ref<string>(
|
||||
config.value[env.value].API_SUPPORT_SOCKET
|
||||
);
|
||||
const API_URI = ref<string>(config.value[env.value].API_URI);
|
||||
const API_CANDIDATE_URI = ref<string>(
|
||||
config.value[env.value].API_CANDIDATE_URI
|
||||
|
|
@ -119,5 +116,4 @@ export default {
|
|||
LINK_EVALUATE_PUBLISH: LINK_EVALUATE_PUBLISH.value,
|
||||
API_REPORT_TEMPLATE_URI: API_REPORT_TEMPLATE_URI.value,
|
||||
API_SUPPORT_URI: API_SUPPORT_URI.value,
|
||||
API_SUPPORT_SOCKET: API_SUPPORT_SOCKET.value,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue