@@ -143,7 +143,6 @@ const whiteList = [ | |||||
router.beforeEach((to, from, next) => { | router.beforeEach((to, from, next) => { | ||||
NProgress.start() | NProgress.start() | ||||
if (getToken()) { | if (getToken()) { | ||||
console.info(to) | |||||
/* has token*/ | /* has token*/ | ||||
if (to.path === '/login') { | if (to.path === '/login') { | ||||
next({ path: '/' }) | next({ path: '/' }) | ||||
@@ -3690,6 +3690,7 @@ export const constantRoutes = [ | |||||
meta: { | meta: { | ||||
title: '种子扫描', | title: '种子扫描', | ||||
hidden: true, | hidden: true, | ||||
keepAlive: true | |||||
}, | }, | ||||
component: (resolve) => require(['@/views/lawEnforcement/retrospect/retrospectDetail'], resolve) | component: (resolve) => require(['@/views/lawEnforcement/retrospect/retrospectDetail'], resolve) | ||||
}, | }, | ||||
@@ -91,6 +91,7 @@ | |||||
}, | }, | ||||
created() { | created() { | ||||
// this.getDictionaries() | // this.getDictionaries() | ||||
console.log("aaaaaaaaaa") | |||||
}, | }, | ||||
methods: { | methods: { | ||||
getDictionaries(){ | getDictionaries(){ | ||||
@@ -106,10 +107,12 @@ | |||||
$route (to, from ) { | $route (to, from ) { | ||||
// 监听路由变化, 实现类似 小程序的 onShow 事件 | // 监听路由变化, 实现类似 小程序的 onShow 事件 | ||||
if (to.path === '/lawEnforcement/retrospectDetail') { | if (to.path === '/lawEnforcement/retrospectDetail') { | ||||
console.log(this.scanLink) | |||||
// do anything you want | // do anything you want | ||||
if (Cookies.get('scanLink')){ | if (Cookies.get('scanLink')){ | ||||
this.scanLink = Cookies.get('scanLink'); | |||||
Cookies.remove('scanLink') | |||||
this.scanLink = Cookies.get('scanLink'); | |||||
console.log(this.scanLink) | |||||
Cookies.remove('scanLink') | |||||
} | } | ||||
} | } | ||||
} | } | ||||