소스 검색

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

chenrui  2 년 전
부모
커밋
b145d1548e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)