Skip to content

Commit

Permalink
Added IAsyncDataContext property
Browse files Browse the repository at this point in the history
  • Loading branch information
lqsong committed Sep 28, 2022
1 parent c5af3b1 commit 937859a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/guide/essentials/async-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
export interface IAsyncDataContext {
route: RouteLocationNormalizedLoaded;
store: Pinia;
router: Router;
ctx?: Context; // 在服务端运行时存在
}
declare module 'vue' {
interface ComponentCustomOptions {
Expand Down
2 changes: 2 additions & 0 deletions docs/src/guide/essentials/seo.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export interface Seo {
export interface IAsyncDataContext {
route: RouteLocationNormalizedLoaded;
store: Pinia;
router: Router;
ctx?: Context; // 在服务端运行时存在
}
declare module 'vue' {
interface ComponentCustomOptions {
Expand Down

0 comments on commit 937859a

Please sign in to comment.