Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit 8b954b4

Browse files
authored
doc: fix composition-api-setup code indent (#496)
1 parent 6188717 commit 8b954b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/guide/composition-api-setup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ export default {
4242
import { toRefs } from 'vue'
4343

4444
setup(props) {
45-
const { title } = toRefs(props)
45+
const { title } = toRefs(props)
4646

47-
console.log(title.value)
47+
console.log(title.value)
4848
}
4949
```
5050

@@ -55,8 +55,8 @@ setup(props) {
5555
// MyBook.vue
5656
import { toRef } from 'vue'
5757
setup(props) {
58-
const title = toRef(props, 'title')
59-
console.log(title.value)
58+
const title = toRef(props, 'title')
59+
console.log(title.value)
6060
}
6161
```
6262

0 commit comments

Comments
 (0)