From 9e4665c305819b0e886ae2daf8e0c402bf409249 Mon Sep 17 00:00:00 2001 From: hardfist Date: Mon, 28 Mar 2016 16:51:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E2=80=9C()"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit class FooComponent() {} 里的()似乎是错误的,经测试无法运行,故予以删除。 --- docs/decorator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/decorator.md b/docs/decorator.md index aa0ff2a..8e52383 100644 --- a/docs/decorator.md +++ b/docs/decorator.md @@ -381,7 +381,7 @@ export default function publish(topic, channel) { ```javascript import publish from "path/to/decorators/publish"; -class FooComponent () { +class FooComponent { @publish("foo.some.message", "component") someMethod() { return {