Skip to content

Commit 8ca395b

Browse files
committed
fix(api): remove arguments of unmount api (vuejs/docs@5192278)
1 parent 23d9737 commit 8ca395b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/api/application-api.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,9 @@ app.provide('user', 'administrator')
261261

262262
## unmount
263263

264-
- **引数:**
265-
266-
- `{Element | string} rootContainer`
267-
268264
- **使用方法:**
269265

270-
与えられた引数に合致した DOM 要素のアプリケーションインスタンスのルート要素をアンマウントします
266+
アプリケーションインスタンスのルートコンポーネントをアンマウントします
271267

272268
- **例:**
273269

@@ -285,7 +281,7 @@ const app = createApp({})
285281
app.mount('#my-app')
286282

287283
// アプリケーションは5秒後にアンマウントされます
288-
setTimeout(() => app.unmount('#my-app'), 5000)
284+
setTimeout(() => app.unmount(), 5000)
289285
```
290286

291287
## use

0 commit comments

Comments
 (0)