mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 16:56:43 +08:00
学平险海报分享功能防止token失效,post改为get--3
This commit is contained in:
@@ -34,17 +34,17 @@ export default {
|
||||
})
|
||||
console.log(this.$route.query);
|
||||
// debugger
|
||||
if (this.$route.query.token) {
|
||||
if (this.$route.query.tooken) {
|
||||
// this.herfUrl = this.$route.query.redirectUrl
|
||||
this.$CacheUtils.setLocItem('token',this.$route.query.token);
|
||||
// this.$CacheUtils.setLocItem('token',this.$route.query.token);
|
||||
this.initThisPage()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 初始化页面
|
||||
async initThisPage() {
|
||||
let res = await this.saveShareRecord('1',this.$route.query.token)
|
||||
await this.sharePosterLoading('1',this.$route.query.token)
|
||||
let res = await this.saveShareRecord('1',this.$route.query.tooken)
|
||||
await this.sharePosterLoading('1',this.$route.query.tooken)
|
||||
// console.log(111+newRes)
|
||||
// if (this.herfUrl) {
|
||||
// window.location.href = this.herfUrl
|
||||
@@ -76,7 +76,7 @@ export default {
|
||||
// redisKey: key,
|
||||
// }
|
||||
console.log(this.$route.query.tooken,'dfdfasd')
|
||||
sharePosterLoading({tooken:'32926a9d9fa84de9bb0cac67ade27ec2'}).then((res) => {
|
||||
sharePosterLoading({tooken:this.$route.query.tooken}).then((res) => {
|
||||
console.log(res)
|
||||
if(res.result==0){
|
||||
window.location.href = res.content
|
||||
|
||||
Reference in New Issue
Block a user