Skip to content

Commit 99aa8c2

Browse files
committed
docs: update client config usage
1 parent a67a0bf commit 99aa8c2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/advanced/cookbook/usage-of-client-config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { defineClientConfig } from '@vuepress/client'
2020
export default defineClientConfig({
2121
enhance({ app, router, siteData }){},
2222
setup(){},
23+
layouts: {},
2324
rootComponents: [],
2425
})
2526
```

docs/zh/advanced/cookbook/usage-of-client-config.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 客户端配置的使用方法
22

3-
你可以直接在你的项目中使用 [客户端配置文件](../../guide/configuration.md#客户端配置文件) 。或者,在你的插件或者主题中,使用 [clientConfigFile](../../reference/plugin-api.md#clientconfigfile) Hook :
3+
你可以直接在你的项目中使用 [客户端配置文件](../../guide/configuration.md#客户端配置文件) 。或者,在你的插件或者主题中,使用 [clientConfigFile](../../reference/plugin-api.md#clientconfigfile) Hook 来指定客户端配置文件的路径
44

55
```ts
66
import { path } from '@vuepress/utils'
@@ -21,6 +21,7 @@ import { defineClientConfig } from '@vuepress/client'
2121
export default defineClientConfig({
2222
enhance({ app, router, siteData }){},
2323
setup(){},
24+
layouts: {},
2425
rootComponents: [],
2526
})
2627
```

0 commit comments

Comments
 (0)