Skip to content

Commit

Permalink
fix: 修复 @ 路径别名失效
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Aug 2, 2023
1 parent b7618c4 commit 8f1d3da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions presets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ function Alias(): Plugin {
replacement: src,
},
{
find: /^@/,
replacement: src,
find: /^@\//,
replacement: src + '/',
},
]
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navigation.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { getRoutes } from '~/plugins/router'
import { getRoutes } from '@/plugins/router'
import { SwitchIcon } from 'vue-dark-switch'
const { t } = useI18n()
Expand Down

0 comments on commit 8f1d3da

Please sign in to comment.