This commit is contained in:
2026-07-28 13:59:16 +08:00 Unverified
parent be842cc1d5
commit 9a75589282
13 changed files with 1119 additions and 43 deletions
+4 -2
View File
@@ -1,9 +1,11 @@
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import { useAuthStore } from '../stores/auth'
import AdminLayout from '../layouts/AdminLayout.vue'
const router = createRouter({
history: createWebHistory(),
history: import.meta.env.VITE_ROUTER_MODE === 'hash'
? createWebHashHistory()
: createWebHistory(),
routes: [
{
path: '/login',