Skip to content

Commit d27fbfb

Browse files
committed
feat: change playground site
1 parent 4085c21 commit d27fbfb

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

packages/hooks/docs/.vitepress/config.ts

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,15 @@ export default defineConfig({
7171
'/': {
7272
nav: [
7373
{ text: '⒡ Hooks', link: '/useRequest/' },
74-
{
75-
text: '演武场',
76-
link: 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play',
77-
},
74+
isGithub
75+
? {
76+
text: '演武场',
77+
link: 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play',
78+
}
79+
: {
80+
text: '演武场',
81+
link: 'https://inhiblab-core.gitee.io/vue-hooks-plus-playground/play',
82+
},
7883
isGithub
7984
? {
8085
text: '国内镜像 🇨🇳',
@@ -91,10 +96,15 @@ export default defineConfig({
9196
'/en/': {
9297
nav: [
9398
{ text: '⒡ Hooks', link: '/en/useRequest/' },
94-
{
95-
text: 'Playground',
96-
link: 'http://43.138.187.142:9000/vue-hooks-plus/vhp-playground/',
97-
},
99+
isGithub
100+
? {
101+
text: 'Playground',
102+
link: 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play',
103+
}
104+
: {
105+
text: 'Playground',
106+
link: 'https://inhiblab-core.gitee.io/vue-hooks-plus-playground/play',
107+
},
98108
isGithub
99109
? {
100110
text: 'Gitee Mirror 🇨🇳',

0 commit comments

Comments
 (0)