|
@@ -91,7 +91,7 @@ router.beforeEach((to, from, next) => {
|
|
|
if (from.path.includes('flightView') && from.query.flightNO && from.query.flightDate) {
|
|
|
store.dispatch('keepAlive/savePage', from)
|
|
|
}
|
|
|
- if (to.path.includes('flightView') && from.path.includes('baggageView') && (!to.query.flightNO || !to.query.flightDate)) {
|
|
|
+ if (to.path.includes('flightView') && (!to.query.flightNO || !to.query.flightDate) && from.meta?.keepAlive) {
|
|
|
const savedPage = store.getters.savedPages.find(savedPage => savedPage.name === to.name)
|
|
|
if (savedPage) {
|
|
|
next(savedPage.fullPath)
|