From 7bb888c439e16b656286124ae2c84583f3308899 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期五, 01 十二月 2023 13:57:20 +0800 Subject: [PATCH] 出入库明细打印-跳转新窗口 --- src/router/index.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index dffb3c5..36f7228 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -119,6 +119,12 @@ // document.title = to.meta.title } }) +router.beforeEach((to, from, next) => { + if(from.name==="overview"){ + localStorage.removeItem('pdfParams'); + } + next(); +}); // router.beforeEach((to, from, next) => { // must call `next` // console.log(to, from) -- Gitblit v1.8.0