Skip to content

Commit

Permalink
fix(vitesse): fix unplugin-vue-router usage
Browse files Browse the repository at this point in the history
  • Loading branch information
FuckDoctors committed Feb 28, 2024
1 parent a893370 commit 0e8f13d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ViteSSG } from 'vite-ssg'
import { setupLayouts } from 'virtual:generated-layouts'

// import Previewer from 'virtual:vue-component-preview'
import { routes } from 'vue-router/auto/routes'
import { routes } from 'vue-router/auto-routes'
import App from './App.vue'
import type { UserModule } from './types'

Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"vite/client",
"vue/ref-macros",
"vite-plugin-vue-layouts/client",
"unplugin-vue-router/client",
"vite-plugin-pwa/client",
"unplugin-vue-macros/macros-global",
"vuepress/client-types"
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default defineConfig({

// https://github.com/posva/unplugin-vue-router
VueRouter({
extensions: ['vue', 'md'],
extensions: ['.vue', '.md'],
dts: 'src/typed-router.d.ts',
routesFolder: [
{ src: 'src/pages', path: '' },
Expand All @@ -54,7 +54,6 @@ export default defineConfig({
AutoImport({
imports: [
'vue',
'vue-router',
'vue-i18n',
'@vueuse/head',
'@vueuse/core',
Expand Down

0 comments on commit 0e8f13d

Please sign in to comment.