自动更新cookie

This commit is contained in:
2025-11-14 20:10:55 +08:00
parent c6c7496449
commit 710d72aefe
14 changed files with 221 additions and 39 deletions
+11 -2
View File
@@ -1,8 +1,12 @@
import { createRouter, createWebHistory } from "vue-router";
import {
createRouter,
createWebHistory,
createWebHashHistory,
} from "vue-router";
import HomeView from "../views/HomeView.vue";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [
{
path: "/",
@@ -37,6 +41,11 @@ const router = createRouter({
name: "Register",
component: () => import("../views/registerView.vue"),
},
{
path: "/admin",
name: "admin",
component: () => import("../views/adminView.vue"),
},
],
});