Skip to content

Commit 756b76a

Browse files
authored
docs: update router name (#9)
1 parent e88c3ea commit 756b76a

2 files changed

Lines changed: 18 additions & 32 deletions

File tree

packages/common/src/config/header.ts

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,40 @@ import tinyVue from '../assets/appIcon/tiny-vue.svg'
99
import tinyRobot from '../assets/appIcon/tiny-robot.svg'
1010

1111
export default [
12-
{
13-
name: '开发文档',
14-
url: '//docs.opentiny.design/',
15-
children: [],
16-
isUnderline: () => false
17-
},
1812
{
1913
name: 'TinyVue',
20-
url: '/tiny-vue-home',
14+
url: '/tiny-vue',
2115
children: [],
2216
logo: tinyVue,
2317
github: 'https://github.com/opentiny/tiny-vue',
24-
isUnderline: () => location.pathname === '/tiny-vue-home'
18+
isUnderline: () => location.pathname === '/tiny-vue'
2519
},
2620
{
2721
name: 'TinyRobot',
28-
url: '/tiny-robot-home',
22+
url: '/tiny-robot',
2923
children: [],
3024
logo: tinyRobot,
3125
hide: false,
3226
github: 'https://github.com/opentiny/tiny-robot',
33-
isUnderline: () => location.pathname === '/tiny-robot-home'
27+
isUnderline: () => location.pathname === '/tiny-robot'
3428
},
3529
{
36-
name: 'NextSDks',
37-
url: '/next-sdks-home',
30+
name: 'NEXT-SDKs',
31+
url: '/next-sdks',
3832
children: [],
3933
logo: tinyRobot,
4034
hide: false,
4135
github: 'https://github.com/opentiny/tiny-robot',
42-
isUnderline: () => location.pathname === '/next-sdks-home'
36+
isUnderline: () => location.pathname === '/next-sdks'
4337
},
4438
{
45-
name: 'AIExtension',
46-
url: '/ai-extension-home',
39+
name: 'AI-Extension',
40+
url: '/ai-extension',
4741
children: [],
4842
logo: tinyRobot,
4943
hide: false,
5044
github: 'https://github.com/opentiny/tiny-robot',
51-
isUnderline: () => location.pathname === '/ai-extension-home'
52-
},
53-
{
54-
name: 'TinyEngine',
55-
url: '/tiny-engine',
56-
children: [],
57-
logo: tinyEngine,
58-
github: 'https://github.com/opentiny/tiny-engine',
59-
isUnderline: () => location.pathname.startsWith('/tiny-engine')
45+
isUnderline: () => location.pathname === '/ai-extension'
6046
},
6147
{
6248
name: '技术学院',

packages/home/src/router.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,27 @@ export const rootRoutes = [
3636
meta: { title: geneTitle('') }
3737
},
3838
{
39-
path: 'tiny-vue-home',
39+
path: 'tiny-vue',
4040
component: tinyVueHome,
41-
name: 'tiny-vue-home',
41+
name: 'tiny-vue',
4242
meta: { title: geneTitle('') }
4343
},
4444
{
45-
path: 'tiny-robot-home',
45+
path: 'tiny-robot',
4646
component: tinyRobotHome,
47-
name: 'tiny-robot-home',
47+
name: 'tiny-robot',
4848
meta: { title: geneTitle('') }
4949
},
5050
{
51-
path: 'ai-extension-home',
51+
path: 'ai-extension',
5252
component: aiExtensionHome,
53-
name: 'ai-extension-home',
53+
name: 'ai-extension',
5454
meta: { title: geneTitle('') }
5555
},
5656
{
57-
path: 'next-sdks-home',
57+
path: 'next-sdks',
5858
component: nextSdksHome,
59-
name: 'next-sdks-home',
59+
name: 'next-sdks',
6060
meta: { title: geneTitle('') }
6161
},
6262
{

0 commit comments

Comments
 (0)