Update: 2026-07-13 22:31:28
This commit is contained in:
@@ -20,7 +20,7 @@ const routes = [
|
|||||||
{ path: '/:pathMatch(.*)*', redirect: '/dashboard' },
|
{ path: '/:pathMatch(.*)*', redirect: '/dashboard' },
|
||||||
]
|
]
|
||||||
|
|
||||||
const router = createRouter({ history: createWebHistory(), routes })
|
const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes })
|
||||||
|
|
||||||
router.beforeEach((to) => {
|
router.beforeEach((to) => {
|
||||||
const auth = useAuthStore()
|
const auth = useAuthStore()
|
||||||
|
|||||||
@@ -3,5 +3,6 @@ import vue from '@vitejs/plugin-vue'
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
|
base: '/transit/',
|
||||||
server: { port: 5183 },
|
server: { port: 5183 },
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user