Skip to content

Commit 937859a

Browse files
committed
Added IAsyncDataContext property
1 parent c5af3b1 commit 937859a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/src/guide/essentials/async-data.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
export interface IAsyncDataContext {
1313
route: RouteLocationNormalizedLoaded;
1414
store: Pinia;
15+
router: Router;
16+
ctx?: Context; // 在服务端运行时存在
1517
}
1618
declare module 'vue' {
1719
interface ComponentCustomOptions {

docs/src/guide/essentials/seo.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ export interface Seo {
2828
export interface IAsyncDataContext {
2929
route: RouteLocationNormalizedLoaded;
3030
store: Pinia;
31+
router: Router;
32+
ctx?: Context; // 在服务端运行时存在
3133
}
3234
declare module 'vue' {
3335
interface ComponentCustomOptions {

0 commit comments

Comments
 (0)