Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a36bfad

Browse files
committedFeb 8, 2025
docs: update
1 parent 7a9a3c1 commit a36bfad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Notice, when we use in general JS files, we can't make props be reactive.
282282
283283
### batchDestroy
284284
285-
We can use the `batchDestroy` method provided by `vue-create-api` to uniformly destroy instances generated by non-Vue context calls (this.$createXxx). For example, we can perform unified destruction when switching routes:
285+
We can use the `batchDestroy` method provided by `vue-create-api` to destroy all instances uniformly. For example, we can destroy them uniformly when the route is switched:
286286
287287
```js
288288
import Vue from 'vue'

‎README_zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ Hello.$create(config, renderFn)
278278

279279
### 批量销毁
280280

281-
我们可以通过`vue-create-api`提供的`batchDestroy`方法统一销毁由非Vue上下文调用(this.$createXxx)产生的实例,例如我们可以在路由切换的时候进行统一销毁:
281+
我们可以通过`vue-create-api`提供的`batchDestroy`方法统一销毁所有实例,例如我们可以在路由切换的时候进行统一销毁:
282282

283283
```js
284284
import Vue from 'vue'

0 commit comments

Comments
 (0)
Please sign in to comment.