浏览代码

docs: Clarify example with namespaced actions (#1361)

Denis Karabaza 6 年之前
父节点
当前提交
ea58140d8e
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      docs/guide/modules.md

+ 4 - 4
docs/guide/modules.md

@@ -209,8 +209,8 @@ computed: {
 },
 methods: {
   ...mapActions([
-    'some/nested/module/foo',
-    'some/nested/module/bar'
+    'some/nested/module/foo', // -> this['some/nested/module/foo']()
+    'some/nested/module/bar' // -> this['some/nested/module/bar']()
   ])
 }
 ```
@@ -226,8 +226,8 @@ computed: {
 },
 methods: {
   ...mapActions('some/nested/module', [
-    'foo',
-    'bar'
+    'foo', // -> this.foo()
+    'bar' // -> this.bar()
   ])
 }
 ```