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