fixing
This commit is contained in:
parent
2eac44ea93
commit
00845faf57
1 changed files with 0 additions and 10 deletions
|
|
@ -5,16 +5,6 @@ import { kcAuthen } from "@/plugins/keycloak";
|
|||
|
||||
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(() => {
|
||||
if (route.query.token && route.query.accessToken) {
|
||||
// console.log('query', route.query.token)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue