mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
fix(vue): correctly pass route props to components (#22476)
resolves #22472
This commit is contained in:
@ -42,6 +42,7 @@ export interface ViewItem {
|
||||
exact: boolean;
|
||||
registerCallback?: () => void;
|
||||
vueComponentRef: Ref;
|
||||
params?: { [k: string]: any };
|
||||
}
|
||||
|
||||
export interface ViewStacks {
|
||||
|
@ -88,7 +88,8 @@ export const createViewStacks = () => {
|
||||
vueComponentRef: shallowRef(),
|
||||
ionRoute: false,
|
||||
mount: false,
|
||||
exact: routeInfo.pathname === matchedRoute.path
|
||||
exact: routeInfo.pathname === matchedRoute.path,
|
||||
params: routeInfo.params
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user