docs: update global method guide

This commit is contained in:
chenjiahan
2020-08-20 23:26:34 +08:00
parent 7cadc5e60f
commit 9a86e9e6ca
7 changed files with 27 additions and 7 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ Notify({
### 全局方法
引入 Notify 组件后,会自动在 Vue 的 prototype 上挂载 `$notify` 方法,便于在组件内调用。
通过 `app.use` 注册 Notify 组件后,会自动在 app 的所有子组件上挂载 `$notify` 方法,便于在组件内调用。
```js
export default {