소스 검색

Missing ... (spread operator) (#438)

add ... (spread operator) on map a getter to a different name section.
Phouvanh Korngchansavath 8 년 전
부모
커밋
1fbf9cd432
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/en/getters.md

+ 1 - 1
docs/en/getters.md

@@ -85,7 +85,7 @@ export default {
 If you want to map a getter to a different name, use an object:
 
 ``` js
-mapGetters({
+...mapGetters({
   // map this.doneCount to store.getters.doneTodosCount
   doneCount: 'doneTodosCount'
 })