Skip to content

Commit

Permalink
docs: base url
Browse files Browse the repository at this point in the history
  • Loading branch information
KouSum committed Nov 26, 2023
1 parent 6a6ac66 commit 8330ae5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Jsx from "@vitejs/plugin-vue-jsx";

// https://vitepress.dev/reference/site-config
export default defineConfig({
// base:'/semi-design-vue/docs/.vitepress/dist/',
base:'/dist/',
title: 'semi-design-vue',
description: 'Vue3 UI components based on semi-design and Vue',
srcDir: 'src',
Expand Down
7 changes: 3 additions & 4 deletions docs/.vitepress/theme/layout/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,12 @@ function gotoGithub() {
window.open(theme.value.socialLinks[0].link);
}
const {page, site, theme, isDark} = useData();
function navSelect(v) {
// console.log(v);
router.go(v.itemKey);
router.go((import.meta.env.BASE_URL + v.itemKey).replace('//', '/'));
}
const {page, site, theme, isDark} = useData();
function setThemeMode() {
const body = window.document.body;
Expand Down

0 comments on commit 8330ae5

Please sign in to comment.