fixing response error dialog & remove env

This commit is contained in:
Warunee Tamkoo 2024-08-28 16:27:01 +07:00
parent 3c36acbba1
commit bb476051f2
3 changed files with 13 additions and 19 deletions

View file

@ -6,16 +6,6 @@ import { setAuthen } from "@/plugins/auth";
const route = useRoute();
function setCookie(name: string, value: any, days: number) {
let expires = "";
if (days) {
const date = new Date();
date.setTime(date.getTime() + days * 24 * 60 * 55 * 1000);
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
onMounted(async () => {
if (route.query.token && route.query.accessToken) {
const params: any = await {