Skip to content

Commit 25bf18d

Browse files
authored
fix: remove router prefix opentiny-design (#75)
1 parent a972288 commit 25bf18d

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

packages/common/src/config/header.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,42 +41,42 @@ const menuItems = [
4141
},
4242
{
4343
name: 'TinyRobot',
44-
url: '/opentiny-design/tiny-robot',
44+
url: '/tiny-robot',
4545
children: [],
4646
logo: tinyRobot,
4747
desc: '智能助手',
4848
hide: false,
4949
github: 'https://github.com/opentiny/tiny-robot',
50-
isUnderline: createIsUnderline('/opentiny-design/tiny-robot')
50+
isUnderline: createIsUnderline('/tiny-robot')
5151
},
5252
{
5353
name: 'NEXT-SDKs',
5454
desc: '开发套件',
55-
url: '/opentiny-design/next-sdk',
55+
url: '/next-sdk',
5656
logo: tinySdks,
5757
hide: false,
5858
github: 'https://github.com/opentiny/next-sdk',
5959
children: [],
60-
isUnderline: createIsUnderline('/opentiny-design/next-sdk')
60+
isUnderline: createIsUnderline('/next-sdk')
6161
},
6262
{
6363
name: 'GenUI-SDK',
6464
desc: '生成式UI',
65-
url: '/opentiny-design/genui-sdk',
65+
url: '/genui-sdk',
6666
logo: GenuiSdk,
6767
hide: false,
6868
github: 'https://github.com/opentiny/genui-sdk',
6969
children: [],
70-
isUnderline: createIsUnderline('/opentiny-design/genui-sdk')
70+
isUnderline: createIsUnderline('/genui-sdk')
7171
},
7272
{
7373
name: 'AI-Extension',
7474
desc: 'AI 浏览器扩展插件',
75-
url: '/opentiny-design/ai-extension',
75+
url: '/ai-extension',
7676
logo: tinyAi,
7777
hide: false,
7878
github: 'https://github.com/opentiny/tiny-robot',
79-
isUnderline: createIsUnderline('/opentiny-design/ai-extension')
79+
isUnderline: createIsUnderline('/ai-extension')
8080
},
8181
{
8282
type: 'other',

packages/home/src/router.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,30 @@ export const rootRoutes = [
3737
name: 'home',
3838
meta: { title: geneTitle('') }
3939
},
40+
{
41+
path: 'tiny-robot',
42+
component: tinyRobotHome,
43+
name: 'tiny-robot',
44+
meta: { title: geneTitle('') }
45+
},
46+
{
47+
path: 'ai-extension',
48+
component: aiExtensionHome,
49+
name: 'ai-extension',
50+
meta: { title: geneTitle('') }
51+
},
52+
{
53+
path: 'next-sdk',
54+
component: nextSdksHome,
55+
name: 'next-sdk',
56+
meta: { title: geneTitle('') }
57+
},
58+
{
59+
path: 'genui-sdk',
60+
component: genuiSdkHome,
61+
name: 'genui-sdk',
62+
meta: { title: geneTitle('') }
63+
},
4064
{
4165
path: 'opentiny-design',
4266
children: [
@@ -52,30 +76,6 @@ export const rootRoutes = [
5276
name: 'tiny-vue',
5377
meta: { title: geneTitle('') }
5478
},
55-
{
56-
path: 'tiny-robot',
57-
component: tinyRobotHome,
58-
name: 'tiny-robot',
59-
meta: { title: geneTitle('') }
60-
},
61-
{
62-
path: 'ai-extension',
63-
component: aiExtensionHome,
64-
name: 'ai-extension',
65-
meta: { title: geneTitle('') }
66-
},
67-
{
68-
path: 'next-sdk',
69-
component: nextSdksHome,
70-
name: 'next-sdk',
71-
meta: { title: geneTitle('') }
72-
},
73-
{
74-
path: 'genui-sdk',
75-
component: genuiSdkHome,
76-
name: 'genui-sdk',
77-
meta: { title: geneTitle('') }
78-
},
7979
{
8080
path: 'guide',
8181
children: [

0 commit comments

Comments
 (0)