เเก้ type SupportIssueCategory

เเละ ตั้งค่า Socket .ใหม่
This commit is contained in:
Net 2024-02-16 16:20:18 +07:00
parent b4c4325cd1
commit 7a579ab4cc
4 changed files with 13 additions and 10 deletions

View file

@ -37,8 +37,10 @@ export interface SupportIssue {
}
export interface SupportIssueCategory {
id: string;
name: string;
result: {
id: string;
name: string;
}[];
}
export interface SupportMessageResponse {
@ -69,10 +71,3 @@ export interface SupportIssueMessage {
read: boolean;
issueId: string;
}
export type {
SupportMessageStatus,
SupportMessageResponse,
SupportIssueResponse,
SupportStatusUser,
};

View file

@ -65,7 +65,7 @@ export const useSupportStore = defineStore("supportServiceStore", () => {
}, 150);
}
const socket = io("http://192.168.1.10:3000/", {
const socket = io(config.API.supportSocket, {
auth: { token: keycloak.token },
autoConnect: false,
});