Browse Source

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

lim 5 years ago
parent
commit
1d90054e0b
1 changed files with 1 additions and 1 deletions
  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'
 })