Skip to content

Commit

Permalink
feat(project): ✨ 尝试使用 hash 路由解决自动部署到 github pages 的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikasa33 committed Oct 12, 2024
1 parent c1dd274 commit a7f9965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import type { App } from 'vue'
import { usePreference } from '@a4v/preference'
import { useNProgress } from '@vueuse/integrations/useNProgress'
import { setupLayouts } from 'virtual:generated-layouts'
import { createRouter, createWebHistory } from 'vue-router/auto'
import { createRouter, createWebHashHistory } from 'vue-router/auto'
import { handleHotUpdate, routes } from 'vue-router/auto-routes'

const { start, done } = useNProgress(null, {
showSpinner: false,
})

export const router = createRouter({
history: createWebHistory(),
history: createWebHashHistory(),
routes: setupLayouts(routes),
})

Expand Down

0 comments on commit a7f9965

Please sign in to comment.