Hi all bros,
I’m having trouble with transition. Here’s my code pen.
I created 2 tab components that based on a layout (HomeLayout) and a dependent LoginPage.
When use visit homepage, he will be redirect to Tab1 page, click login to visit login page, then the web page will automatically redirect to Tab1 page.
Here’s working code
<div id="app"> <keep-alive> <router-view/> </keep-alive> </div>
But adding transition tag makes the auto redirect after login not working as normal (the Tab1 page was not loaded after redirect from login process)
<div id="app"> <transition name="fade" mode="out-in"> <keep-alive> <router-view/> </keep-alive> </transition> </div>
How could I overcome this problem, Pls show me a clue.
Thank in advance!