diff --git a/src/api/application-api.md b/src/api/application-api.md index e41e853d5a..a0a9ee7c59 100644 --- a/src/api/application-api.md +++ b/src/api/application-api.md @@ -261,13 +261,9 @@ app.provide('user', 'administrator') ## unmount -- **Arguments:** - - - `{Element | string} rootContainer` - - **Usage:** - Unmounts a root component of the application instance on the provided DOM element. + Unmounts a root component of the application instance. - **Example:** @@ -285,7 +281,7 @@ const app = createApp({}) app.mount('#my-app') // Application will be unmounted 5 seconds after mount -setTimeout(() => app.unmount('#my-app'), 5000) +setTimeout(() => app.unmount(), 5000) ``` ## use