Skip to content

Commit

Permalink
feat: 完成菜单结构调整
Browse files Browse the repository at this point in the history
  • Loading branch information
neo committed Dec 28, 2024
1 parent f38a1a8 commit b402c41
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .dumi/theme/builtins/CaskAndFormula.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ const CaskAndFormula = ({}) => {
};

const openCaskDetail = item => {
window.open('/app-detail?cid=' + item.id);
window.open('/app/detail?cid=' + item.id);
};

const openFormulaDetail = item => {
window.open('/app-detail?fid=' + item.id);
window.open('/app/detail?fid=' + item.id);
};

const onSearch = value => {
Expand Down
12 changes: 11 additions & 1 deletion .umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,17 @@ export default defineConfig({
title: '快系列-你快了吗',
children: ['/install/stable-diffusion-webui', '/install/nvm-for-nodejs', '/install/game-porting-toolkit'],
}
]
],
'/app': [
{
title: 'App',
children: ['/app/homebrew'],
},
{
title: 'Detail',
children: ['/app/detail'],
}
],
},
extraBabelPlugins: [
[
Expand Down
2 changes: 0 additions & 2 deletions docs/app-detail.md → docs/app/detail.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
nav:
hide: true
toc: false
sidemenu: false
filePath:
Expand Down
2 changes: 1 addition & 1 deletion docs/homebrew.md → docs/app/homebrew.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
nav:
title: 应用
title: 软件
toc: false
sidemenu: false
filePath:
Expand Down

0 comments on commit b402c41

Please sign in to comment.