remove file
This commit is contained in:
parent
28a31cd04b
commit
a77da7547b
2 changed files with 0 additions and 51 deletions
|
|
@ -2,8 +2,6 @@ const supportMain = () => import("@/modules/00_support/views/MainPage.vue");
|
|||
const supportCategory = () =>
|
||||
import("@/modules/00_support/views/ManageCategory.vue");
|
||||
|
||||
// const testView = () => import("@/views/TestManagement.vue");
|
||||
|
||||
export default [
|
||||
{
|
||||
path: "/support",
|
||||
|
|
@ -25,15 +23,4 @@ export default [
|
|||
Role: "support",
|
||||
},
|
||||
},
|
||||
|
||||
// {
|
||||
// path: "/test",
|
||||
// name: "testView",
|
||||
// component: testView,
|
||||
// meta: {
|
||||
// Auth: true,
|
||||
// Key: [1.1],
|
||||
// Role: "support",
|
||||
// },
|
||||
// },
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,38 +0,0 @@
|
|||
<script setup lang="ts">
|
||||
function deleteCookie(name: string, path: string = "/", domain?: string) {
|
||||
let cookieString = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${path};`;
|
||||
if (domain) {
|
||||
cookieString += ` domain=${domain};`;
|
||||
}
|
||||
document.cookie = cookieString;
|
||||
console.log("Deleted cookie:", name);
|
||||
}
|
||||
|
||||
function showCookies() {
|
||||
const cookies = document.cookie.split(";").map((cookie) => cookie.trim());
|
||||
const cookieNames = cookies.map((cookie) => cookie.split("=")[0]);
|
||||
console.log("Cookies:", cookieNames);
|
||||
}
|
||||
|
||||
function handleDeleteCookie() {
|
||||
deleteCookie("AUTH_SESSION_ID");
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<q-btn
|
||||
color="white"
|
||||
text-color="black"
|
||||
label="Del"
|
||||
@click="handleDeleteCookie"
|
||||
/>
|
||||
|
||||
<q-btn
|
||||
color="white"
|
||||
text-color="black"
|
||||
label="Show Cookies"
|
||||
@click="showCookies"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue