From 20686d0a02556153d85e1ff33d0b6cf21a1c381e Mon Sep 17 00:00:00 2001 From: gimmyhehe <975402925@qq.com> Date: Mon, 11 Mar 2024 10:47:53 +0800 Subject: [PATCH] Cgm/add theme route (#1479) * feat(sites): add theme route * feat(sites): add theme route --- examples/sites/src/views/layout/layout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/sites/src/views/layout/layout.vue b/examples/sites/src/views/layout/layout.vue index cc2e723e5..a78fd0e2e 100644 --- a/examples/sites/src/views/layout/layout.vue +++ b/examples/sites/src/views/layout/layout.vue @@ -159,7 +159,7 @@ export default defineComponent({ const clickMenu = (menu) => { if (menu.type === 'overview') { - router.push(`${import.meta.env.VITE_CONTEXT}${allPath}${lang}/overview`) + router.push(`${import.meta.env.VITE_CONTEXT}${allPath}${lang}/${theme}/overview`) } else if (menu.type === 'docs') { router.push(getTo('docs/', menu.key)) } else if (menu.type === 'components') {