Browse Source

docs(zh): update getter.md (#1710)

lim 5 năm trước cách đây
mục cha
commit
1d90054e0b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      docs/zh/guide/getters.md

+ 1 - 1
docs/zh/guide/getters.md

@@ -111,7 +111,7 @@ export default {
 如果你想将一个 getter 属性另取一个名字,使用对象形式:
 
 ``` js
-mapGetters({
+...mapGetters({
   // 把 `this.doneCount` 映射为 `this.$store.getters.doneTodosCount`
   doneCount: 'doneTodosCount'
 })