Skip to content

Commit fea4e8d

Browse files
committed
修改演示代码错误
1 parent 0a8532d commit fea4e8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ dynamicComponent 状态库中默认有插槽位置`GLOBAL`,当调用下列方
6363

6464
```javascript
6565
import AComponent from './AComponent.vue'
66-
this.$dynamicComponent.add(AComponent, 'HEADER')
66+
this.$dynamicComponent.create(AComponent, 'HEADER')
6767
```
6868

6969
### .destroy
@@ -79,7 +79,7 @@ this.$dynamicComponent.add(AComponent, 'HEADER')
7979
- 用法:
8080

8181
```javascript
82-
this.$dynamicComponent.remove('componentName', 'HEADER')
82+
this.$dynamicComponent.destroy('componentName', 'HEADER')
8383
```
8484

8585
## vm.$eventBus

0 commit comments

Comments
 (0)