diff --git a/docs/zh-cn/api/config.md b/docs/zh-cn/api/config.md index 0fa58a75b..935e61afc 100644 --- a/docs/zh-cn/api/config.md +++ b/docs/zh-cn/api/config.md @@ -13,7 +13,7 @@ }` 存储在 `config.stubs` 中的存根会被默认使用。 -用到的组件存根。它们会被传入挂载选项的 `stubs` 复写。 +用到的组件存根。它们会被传入挂载选项的 `stubs` 覆写。 当把 `stubs` 作为一个数组传入挂载选项时,`config.stubs` 会被转换为一个数组,然后用只返回一个 `` 的基础组件进行存根。 diff --git a/docs/zh-cn/api/options.md b/docs/zh-cn/api/options.md index aa8663c84..255a4f212 100644 --- a/docs/zh-cn/api/options.md +++ b/docs/zh-cn/api/options.md @@ -168,7 +168,7 @@ expect(wrapper.vm.$route).toBeInstanceOf(Object) ## 其它选项 -当 `mount` 和 `shallow` 的选项包含了挂载选项之外的选项时,则会将它们通过[扩展](https://vuejs.org/v2/api/#extends)复写到其组件选项。 +当 `mount` 和 `shallow` 的选项包含了挂载选项之外的选项时,则会将它们通过[扩展](https://vuejs.org/v2/api/#extends)覆写到其组件选项。 ```js const Component = { diff --git a/docs/zh-cn/guides/using-with-vue-router.md b/docs/zh-cn/guides/using-with-vue-router.md index e8714f7b8..193b664cc 100644 --- a/docs/zh-cn/guides/using-with-vue-router.md +++ b/docs/zh-cn/guides/using-with-vue-router.md @@ -20,7 +20,7 @@ shallow(Component, { }) ``` -> **注意:**在一个 `localVue` 上安装 Vue Router 时也会将 `$route` 和 `$router` 作为两个只读属性添加给该 `localVue`。这意味着如果你使用安装了 Vue Router 的 `localVue`,则不能在挂在一个组件时使用 `mocks` 选项来复写 `$route` 和 `$router`。 +> **注意:**在一个 `localVue` 上安装 Vue Router 时也会将 `$route` 和 `$router` 作为两个只读属性添加给该 `localVue`。这意味着如果你使用安装了 Vue Router 的 `localVue`,则不能在挂在一个组件时使用 `mocks` 选项来覆写 `$route` 和 `$router`。 ## 测试使用了 `router-link` 或 `router-view` 的组件