fix: fix navbar withBase

pull/59/head
Evan You 4 years ago
parent e782c4cb86
commit e9ab56b0db

@ -1,4 +1,5 @@
import { computed } from 'vue' import { computed } from 'vue'
import { withBase } from '../utils'
import { useSiteDataByRoute } from 'vitepress' import { useSiteDataByRoute } from 'vitepress'
import NavBarLink from './NavBarLink.vue' import NavBarLink from './NavBarLink.vue'
import NavDropdownLink from './NavDropdownLink.vue' import NavDropdownLink from './NavDropdownLink.vue'
@ -11,6 +12,7 @@ export default {
setup() { setup() {
return { return {
withBase,
navData: navData:
process.env.NODE_ENV === 'production' process.env.NODE_ENV === 'production'
? // navbar items do not change in production ? // navbar items do not change in production

Loading…
Cancel
Save