Skip to content

Commit 68a0d9b

Browse files
committed
chore: updates
1 parent 1b677c1 commit 68a0d9b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/reference/client-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ const {
118118
<script setup>
119119
import { onContentUpdated } from 'vuepress/client'
120120
121-
onContentUpdated(() => {
122-
console.log('content updated')
121+
onContentUpdated((reason) => {
122+
console.log(`content updated reason: ${reason}`)
123123
})
124124
</script>
125125
```

docs/zh/reference/client-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ const {
118118
<script setup>
119119
import { onContentUpdated } from 'vuepress/client'
120120
121-
onContentUpdated(() => {
122-
console.log('content updated')
121+
onContentUpdated((reason) => {
122+
console.log(`content updated reason: ${reason}`)
123123
})
124124
</script>
125125
```

0 commit comments

Comments
 (0)