庞东旭 2 лет назад
Родитель
Сommit
d1f104cd7d
3 измененных файлов: 6 добавлений и 3 удалений
  1. +0
    -1
      src/permission.js
  2. +1
    -0
      src/router/index.js
  3. +5
    -2
      src/views/lawEnforcement/retrospect/retrospectDetail.vue

+ 0
- 1
src/permission.js Просмотреть файл

@@ -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: '/' })


+ 1
- 0
src/router/index.js Просмотреть файл

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


+ 5
- 2
src/views/lawEnforcement/retrospect/retrospectDetail.vue Просмотреть файл

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


Загрузка…
Отмена
Сохранить