From e9ab56b0dbe859c0a147e2a2755bfcf2c0b92904 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 21 Jul 2020 17:23:32 -0400 Subject: [PATCH] fix: fix navbar withBase --- src/client/theme-default/components/NavBar.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/theme-default/components/NavBar.ts b/src/client/theme-default/components/NavBar.ts index e41aa966..3e706e69 100644 --- a/src/client/theme-default/components/NavBar.ts +++ b/src/client/theme-default/components/NavBar.ts @@ -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' @@ -11,6 +12,7 @@ export default { setup() { return { + withBase, navData: process.env.NODE_ENV === 'production' ? // navbar items do not change in production