forked from opentiny/tiny-vue
Cgm/add theme route (#1479)
* feat(sites): add theme route * feat(sites): add theme route
This commit is contained in:
parent
90c2eb02ba
commit
20686d0a02
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue