src\plugins\tab.js
// 关闭指定tab页签
closePage(obj) {
console.log(obj,'obj')
if (obj === undefined) {
return store.dispatch('tagsView/delView', router.currentRoute).then(({ lastPath }) => {
return router.push(lastPath || '/');
});
}
if(obj.fullPath == "/plugin/workflow/process/send"){
window.sessionStorage.removeItem('query')
window.sessionStorage.removeItem('currentPage')
}
return store.dispatch('tagsView/delView', obj);
},
可以通过判断obj,obj里有页面路径