Skip to content

Commit

Permalink
fix: fix navbar withBase
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 21, 2020
1 parent e782c4c commit e9ab56b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/theme-default/components/NavBar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { computed } from 'vue'
import { withBase } from '../utils'
import { useSiteDataByRoute } from 'vitepress'
import NavBarLink from './NavBarLink.vue'
import NavDropdownLink from './NavDropdownLink.vue'
Expand All @@ -11,6 +12,7 @@ export default {

setup() {
return {
withBase,
navData:
process.env.NODE_ENV === 'production'
? // navbar items do not change in production
Expand Down

0 comments on commit e9ab56b

Please sign in to comment.