mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-27 20:32:21 +00:00
删除错误的“()"
class FooComponent() {} 里的()似乎是错误的,经测试无法运行,故予以删除。
This commit is contained in:
parent
8c4187a2f7
commit
9e4665c305
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user