Skip to content

Commit f34527b

Browse files
authored
Merge pull request #189 from chengpeiquan/typo
chore: typo
2 parents 2c57f7a + 0ac8e56 commit f34527b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/pinia.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ export const useStore = defineStore('main', {
677677
})
678678
```
679679

680-
[Options API 的 Computed](component.md#回顾-vue-2-3) 写法一样,也是通过函数来返回计算后的值,但在 Pinia ,只能使用箭头函数,通过入参的 `state` 来拿到当前实例的数据。
680+
[Options API 的 Computed](component.md#回顾-vue-2-3) 写法一样,也是通过函数来返回计算后的值, Getter 可以通过入参的 `state` 来拿到当前实例的数据(在 Pinia 里,官方更推荐使用箭头函数)
681681

682682
#### 添加引用 getter 的 getter
683683

0 commit comments

Comments
 (0)