浏览代码

扫码优化

wulanhaote
庞东旭 2 年前
父节点
当前提交
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) => {
NProgress.start()
if (getToken()) {
console.info(to)
/* has token*/
if (to.path === '/login') {
next({ path: '/' })


+ 1
- 0
src/router/index.js 查看文件

@@ -3690,6 +3690,7 @@ export const constantRoutes = [
meta: {
title: '种子扫描',
hidden: true,
keepAlive: true
},
component: (resolve) => require(['@/views/lawEnforcement/retrospect/retrospectDetail'], resolve)
},


+ 5
- 2
src/views/lawEnforcement/retrospect/retrospectDetail.vue 查看文件

@@ -91,6 +91,7 @@
},
created() {
// this.getDictionaries()
console.log("aaaaaaaaaa")
},
methods: {
getDictionaries(){
@@ -106,10 +107,12 @@
$route (to, from ) {
// 监听路由变化, 实现类似 小程序的 onShow 事件
if (to.path === '/lawEnforcement/retrospectDetail') {
console.log(this.scanLink)
// do anything you want
if (Cookies.get('scanLink')){
this.scanLink = Cookies.get('scanLink');
Cookies.remove('scanLink')
this.scanLink = Cookies.get('scanLink');
console.log(this.scanLink)
Cookies.remove('scanLink')
}
}
}


正在加载...
取消
保存