feat: update

This commit is contained in:
2024-11-09 14:37:09 +00:00
parent 3ef0c93c8f
commit b50abccae0
26 changed files with 728 additions and 254 deletions
+6
View File
@@ -6,6 +6,12 @@ export const BASE_WS_URL = BASE_API_URL.replace("http", "ws");
const api = ofetch.create({
baseURL: BASE_API_URL,
onResponseError: (error) => {
if (error.response._data) {
const message = error.response._data.message;
throw new Error(message || "Something went wrong");
}
},
});
export const queryClient = new QueryClient();