fixing response error dialog & remove env
This commit is contained in:
parent
3c36acbba1
commit
bb476051f2
3 changed files with 13 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue