学平险海报分享功能防止token失效,post改为get--3

This commit is contained in:
li.yuetong
2022-08-04 21:47:25 +08:00
parent d4a8745d9b
commit f73979f893

View File

@@ -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