thêm chức năng Sos và thêm glustack-ui

This commit is contained in:
Tran Anh Tuan
2025-11-04 16:24:54 +07:00
parent e535aaa1e8
commit 2137925ba9
33 changed files with 5533 additions and 171 deletions

View File

@@ -1,6 +1,7 @@
import { TOKEN } from "@/constants";
import { getStorageItem } from "@/utils/storage";
import axios, { AxiosInstance } from "axios";
import { handle401 } from "./auth";
import { showToastError } from "./toast";
const codeMessage = {
@@ -72,7 +73,7 @@ api.interceptors.response.use(
showToastError(`Lỗi ${status}`, errMsg);
if (status === 401) {
// handle401();
handle401();
}
return Promise.reject(error);
}