Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9
Closed
Labels
Description
<template> <Page> <BottomNavigation @selectedIndexChanged="onBottomNavigationIndexChanged"> <TabStrip> <TabStripItem @tap="() => onTabTap(0)"> <Label text="News"></Label> <Image src.decode="font://"></Image> </TabStripItem> <TabStripItem> <Label text="Settings"></Label> <Image src.decode="font://"></Image> </TabStripItem> </TabStrip> <TabContentItem> <Frame ref="frame-1"> <Page> <Navigator defaultRoute="/feed"/> </Page> </Frame> </TabContentItem> <TabContentItem> <Frame ref="frame-2"> <Page> <Navigator defaultRoute="/settings"/> </Page> </Frame> </TabContentItem> </BottomNavigation> </Page>
/feed route
this.$navigator.navigate('/article', { props: { articleId: id, }, frame: 'frame-1', // without this, it navigates in frame-2 });
I expected it to know which frame it was held within and navigate accordingly.
Not the end of the world, just means I have to manually specify the frame, which may not be ideal, as there might be several paths to the same page in each tab.