Explorar o código

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

add ... (spread operator) on map a getter to a different name section.
Phouvanh Korngchansavath %!s(int64=8) %!d(string=hai) anos
pai
achega
1fbf9cd432
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'
 })