auu
This commit is contained in:
parent
90407680af
commit
09e794b2ef
@ -54,18 +54,16 @@ router.beforeEach((to, from, next) => {
|
|||||||
const urlToBeAccessed = to.fullPath; // 获取即将跳转的完整URL
|
const urlToBeAccessed = to.fullPath; // 获取即将跳转的完整URL
|
||||||
// alert(urlToBeAccessed+' 11111')
|
// alert(urlToBeAccessed+' 11111')
|
||||||
console.log('即将跳转到:', urlToBeAccessed);
|
console.log('即将跳转到:', urlToBeAccessed);
|
||||||
|
|
||||||
urlToBeAccessed = urlToBeAccessed + "subscribe"
|
if(1=1){
|
||||||
if(urlToBeAccessed.includes('subscribe')){
|
|
||||||
const token=localStorage.getItem('bearer-tokens');
|
const token=localStorage.getItem('bearer-tokens');
|
||||||
if(typeof token === "undefined"||token ==null|| token == ""|| token == "undefined")
|
if(typeof token === "undefined"||token ==null|| token == ""|| token == "undefined")
|
||||||
{
|
{
|
||||||
// alert(' 2222')
|
// alert(' 2222')
|
||||||
let queryParams = to.query;
|
let queryParams = to.query;
|
||||||
let subscribe = queryParams.subscribe
|
let subscribe = queryParams.subscribe
|
||||||
subscribe = 1
|
|
||||||
// alert(subscribe+' 3333')
|
// alert(subscribe+' 3333')
|
||||||
if(subscribe == '1'){
|
if(1=1){
|
||||||
|
|
||||||
// let openid = queryParams.openid
|
// let openid = queryParams.openid
|
||||||
let openid = getCookie('wechat_user_openid')
|
let openid = getCookie('wechat_user_openid')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user