Explorar o código

Merge branch 'master' of http://120.26.64.82:3000/BFFE/CABaggageData2.0

chenrui  %!s(int64=2) %!d(string=hai) anos
pai
achega
b145d1548e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/router/index.js

+ 1 - 1
src/router/index.js

@@ -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)